public class MissionPackageExportMarshal extends ExportMarshal
Export
instances to a mission packageModifier 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 |
progress
sort
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, setProgress
isDefaultFilter, toString
public 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()
ExportMarshal
getTargetClass
in class ExportMarshal
public boolean isIncChildren()
public void setIncChildren(boolean incChildren)
public void execute(java.util.List<Exportable> exports) throws java.io.IOException, FormatNotSupportedException
ExportMarshal
beginMarshal
execute
in class ExportMarshal
java.io.IOException
FormatNotSupportedException
protected void beginMarshal(android.content.Context context, java.util.List<Exportable> exports)
beginMarshal
in class ExportMarshal
context
- 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
ExportMarshal
marshal
in class ExportMarshal
java.io.IOException
FormatNotSupportedException
protected void findAssociatedItems(MapView mv, java.lang.String uid, MissionPackageExportMarshal.MapItemSet itemSet)
public void finalizeMarshal()
ExportMarshal
finalizeMarshal
in class ExportMarshal
public void postMarshal()
ExportMarshal
postMarshal
in class ExportMarshal
protected void cancelMarshal()
ExportMarshal
cancelMarshal
in class ExportMarshal
public java.lang.String getContentType()
ExportMarshal
getContentType
in class ExportMarshal
public java.lang.String getMIMEType()
getMIMEType
in class ExportMarshal
public int getIconId()
getIconId
in class ExportMarshal
public boolean acceptEntry(HierarchyListItem list)
HierarchyListFilter
acceptEntry
in class HierarchyListFilter
list
- List itempublic boolean filterListItemImpl(HierarchyListItem item)
filterListItemImpl
in class ExportMarshal
public boolean filterItem(MapItem item)
ExportMarshal
ExportFilters
filterItem
in class ExportMarshal
public boolean filterGroup(MapGroup group)
ExportMarshal
filterGroup
in class ExportMarshal