public class MissionPackageConfiguration
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
MissionPackageConfiguration.ImportInstructions
Enum driven by packages instructions for onReceiveDelete & onReceiveImport
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<NameValuePair> |
_parameters |
static android.os.Parcelable.Creator<MissionPackageConfiguration> |
CREATOR |
static java.lang.String |
PARAMETER_DeleteWithPackage
Any content with this parameter set to "true" will be deleted from the map/filesystem
once the Mission Package is deleted
i.e.
|
static java.lang.String |
PARAMETER_NAME |
static java.lang.String |
PARAMETER_OnReceiveAction
A custom intent may be sent on the receiving device once the Mission Package has been
extracted.
|
static java.lang.String |
PARAMETER_OnReceiveDelete
Omit or false to have Mission Package persist on receiver, If true, the Mission Package .zip
will be automatically deleted after extraction on the receiver.
|
static java.lang.String |
PARAMETER_OnReceiveImport
Omit or true to have Mission Package imported on receiver, If true, the Mission Package .zip
will be automatically imported based on content inspection of zipped files/data.
|
static java.lang.String |
PARAMETER_REMARKS |
static java.lang.String |
PARAMETER_UID |
Modifier | Constructor and Description |
---|---|
|
MissionPackageConfiguration() |
|
MissionPackageConfiguration(MissionPackageConfiguration copy) |
protected |
MissionPackageConfiguration(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
describeContents() |
boolean |
equals(MissionPackageConfiguration rhsc) |
boolean |
equals(java.lang.Object o) |
MissionPackageConfiguration.ImportInstructions |
getImportInstructions()
Get the import instructions
|
NameValuePair |
getParameter(java.lang.String name) |
java.util.List<NameValuePair> |
getParameters() |
<T> T |
getParameterValue(java.lang.String name)
Get a parameter's value and auto-cast to the provided return type
|
int |
hashCode() |
boolean |
hasParameter(java.lang.String name) |
boolean |
isValid() |
void |
removeParameter(java.lang.String name) |
void |
setImportInstructions(boolean bImport,
boolean bDelete,
java.lang.String onReceiveAction)
Set the import instructions (to be processed by receiver of package)
|
void |
setParameter(NameValuePair parameter) |
void |
setParameter(java.lang.String name,
java.lang.String value) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final java.lang.String PARAMETER_NAME
public static final java.lang.String PARAMETER_UID
public static final java.lang.String PARAMETER_REMARKS
public static final java.lang.String PARAMETER_OnReceiveDelete
public static final java.lang.String PARAMETER_OnReceiveImport
public static final java.lang.String PARAMETER_DeleteWithPackage
public static final java.lang.String PARAMETER_OnReceiveAction
protected java.util.List<NameValuePair> _parameters
public static final android.os.Parcelable.Creator<MissionPackageConfiguration> CREATOR
public MissionPackageConfiguration()
public MissionPackageConfiguration(MissionPackageConfiguration copy)
protected MissionPackageConfiguration(android.os.Parcel in)
public boolean isValid()
public void clear()
public MissionPackageConfiguration.ImportInstructions getImportInstructions()
public void setImportInstructions(boolean bImport, boolean bDelete, java.lang.String onReceiveAction)
bImport
- true to run extract files against Import ManagerbDelete
- true to delete .zip after extractiononReceiveAction
- Intent action to broadcast on receiver after extraction/deletionpublic boolean hasParameter(java.lang.String name)
public NameValuePair getParameter(java.lang.String name)
public <T> T getParameterValue(java.lang.String name)
T
- Return typename
- Parameter namepublic java.util.List<NameValuePair> getParameters()
public void setParameter(NameValuePair parameter)
public void setParameter(java.lang.String name, java.lang.String value)
public void removeParameter(java.lang.String name)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(MissionPackageConfiguration rhsc)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object