public class MissionPackageExportMarshal extends ExportMarshal
Export instances to a mission package| Modifier and Type | Class and Description |
|---|---|
protected static class |
MissionPackageExportMarshal.MapItemSet
List of non-duplicate map items
|
ExportMarshal.Progress| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
context |
protected java.util.List<java.lang.String> |
filepaths |
static java.lang.String |
IGNORE_IN_MP_KEY |
protected java.util.List<java.lang.String> |
mapItemUIDs |
static android.text.InputFilter |
NAME_FILTER |
progresssort| Constructor and Description |
|---|
MissionPackageExportMarshal(android.content.Context context) |
MissionPackageExportMarshal(android.content.Context context,
java.lang.Boolean incAtt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptEntry(HierarchyListItem list)
Test to allow user to enter this item's sub-list
|
static void |
addGroupNameToAllow(java.lang.String groupName)
The ability to add a group name to allow when considering what can be exported.
|
static void |
addParentGroupNameToAllow(java.lang.String groupName)
The ability to add a parent group name to allow when considering what can be
exported.
|
protected void |
beginMarshal(android.content.Context context,
java.util.List<Exportable> exports)
Begin the export, do not display progress dialog
|
protected void |
cancelMarshal()
Cancel the export e.g.
|
void |
execute(java.util.List<Exportable> exports)
Initiate export.
|
boolean |
filterGroup(MapGroup group)
Default implementation filters on the "Layer Outlines" group
|
boolean |
filterItem(MapItem item)
Default implementation filters non-Exportable and then
defers to the
ExportFilters |
boolean |
filterListItemImpl(HierarchyListItem item) |
void |
finalizeMarshal()
Finalize the export, e.g.
|
protected void |
findAssociatedItems(MapView mv,
java.lang.String uid,
MissionPackageExportMarshal.MapItemSet itemSet) |
java.lang.String |
getContentType()
UI type and icon
|
int |
getIconId() |
java.lang.String |
getMIMEType() |
java.lang.Class<?> |
getTargetClass()
Target class this implementation exports to
|
boolean |
isIncChildren() |
boolean |
marshal(java.util.Collection<Exportable> exports)
Marshal or organize export for marshaling during finalize().
|
void |
postMarshal()
Will be invoked on UI thread, upon successful export
|
static void |
removeGroupNameToAllow(java.lang.String groupName)
The ability to remove a group name to allow when considering what can be exported.
|
static void |
removeParentGroupNameToAllow(java.lang.String groupName)
The ability to add a parent group name to allow when considering what can be
exported.
|
void |
setIncChildren(boolean incChildren) |
void |
setMissionPackageUID(java.lang.String uid) |
accept, addFilter, filterOverlay, getFilters, hasProgress, setProgressisDefaultFilter, toStringpublic static final java.lang.String IGNORE_IN_MP_KEY
protected final java.util.List<java.lang.String> mapItemUIDs
protected final java.util.List<java.lang.String> filepaths
protected final android.content.Context context
public static final android.text.InputFilter NAME_FILTER
public MissionPackageExportMarshal(android.content.Context context,
java.lang.Boolean incAtt)
public MissionPackageExportMarshal(android.content.Context context)
public static void addGroupNameToAllow(java.lang.String groupName)
groupName - the groupName to add.public static void removeGroupNameToAllow(java.lang.String groupName)
groupName - the groupName to remove.public static void addParentGroupNameToAllow(java.lang.String groupName)
groupName - the groupName to add.public static void removeParentGroupNameToAllow(java.lang.String groupName)
groupName - the groupName to remove.public void setMissionPackageUID(java.lang.String uid)
public java.lang.Class<?> getTargetClass()
ExportMarshalgetTargetClass in class ExportMarshalpublic boolean isIncChildren()
public void setIncChildren(boolean incChildren)
public void execute(java.util.List<Exportable> exports) throws java.io.IOException, FormatNotSupportedException
ExportMarshalbeginMarshalexecute in class ExportMarshaljava.io.IOExceptionFormatNotSupportedExceptionprotected void beginMarshal(android.content.Context context,
java.util.List<Exportable> exports)
beginMarshal in class ExportMarshalcontext - the context to use during the beginMarshal taskexports - the list of exportable itemspublic boolean marshal(java.util.Collection<Exportable> exports) throws java.io.IOException, FormatNotSupportedException
ExportMarshalmarshal in class ExportMarshaljava.io.IOExceptionFormatNotSupportedExceptionprotected void findAssociatedItems(MapView mv, java.lang.String uid, MissionPackageExportMarshal.MapItemSet itemSet)
public void finalizeMarshal()
ExportMarshalfinalizeMarshal in class ExportMarshalpublic void postMarshal()
ExportMarshalpostMarshal in class ExportMarshalprotected void cancelMarshal()
ExportMarshalcancelMarshal in class ExportMarshalpublic java.lang.String getContentType()
ExportMarshalgetContentType in class ExportMarshalpublic java.lang.String getMIMEType()
getMIMEType in class ExportMarshalpublic int getIconId()
getIconId in class ExportMarshalpublic boolean acceptEntry(HierarchyListItem list)
HierarchyListFilteracceptEntry in class HierarchyListFilterlist - List itempublic boolean filterListItemImpl(HierarchyListItem item)
filterListItemImpl in class ExportMarshalpublic boolean filterItem(MapItem item)
ExportMarshalExportFiltersfilterItem in class ExportMarshalpublic boolean filterGroup(MapGroup group)
ExportMarshalfilterGroup in class ExportMarshal