public abstract class MapItemImportFactory
extends java.lang.Object
Constructor and Description |
---|
MapItemImportFactory() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getFactoryName()
Returns the factory name.
|
MapItem |
instanceFromCot(CotEvent cotEvent,
MapItem existingMapItem,
MapGroup mapGroup)
Create MapItem from CoT event.
|
public MapItem instanceFromCot(CotEvent cotEvent, MapItem existingMapItem, MapGroup mapGroup) throws FormatNotSupportedException
cotEvent
- event to parseexistingMapItem
- Existing map item representing this CoT event, if any. Implementations
can optionally update this map item instead of creating an entirely new one. (This
item is found by UID and provided to save doing an additional find)mapGroup
- MapGroup that the MapItem will belong to after creation. Note that the method
will not necessarily add the MapItem to this group. This should be done by the
calling method.FormatNotSupportedException
public abstract java.lang.String getFactoryName()