public class PrecisionLocationHandler extends CotDetailHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRECISIONLOCATION |
Modifier and Type | Method and Description |
---|---|
static PrecisionLocationHandler |
getInstance() |
static GeoPointMetaData |
getPrecisionLocation(CotEvent event)
Get point metadata from a detail
|
boolean |
toCotDetail(MapItem item,
CotEvent event,
CotDetail detail)
Convert map item metadata to a CoT detail
|
CommsMapComponent.ImportResult |
toItemMetadata(MapItem item,
CotEvent event,
CotDetail detail)
Convert CoT event detail to map item metadata
|
static CotDetail |
toPrecisionLocation(GeoPointMetaData gpmd)
Convert a point's metadata to a CoT detail
|
getDetailNames, getMapItem, getPoint, isSupported, parseDouble, parseInt
public static final java.lang.String PRECISIONLOCATION
public static PrecisionLocationHandler getInstance()
public boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toCotDetail
in class CotDetailHandler
item
- Map item to readevent
- Item's associated CoT eventdetail
- The CoT event root detail (add to this)public CommsMapComponent.ImportResult toItemMetadata(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toItemMetadata
in class CotDetailHandler
item
- Map itemevent
- Item's associated CoT eventdetail
- The detail associated with this handler (read from this)CommsMapComponent.ImportResult.SUCCESS
if handled successfully
CommsMapComponent.ImportResult.FAILURE
if handled but failed
CommsMapComponent.ImportResult.IGNORE
if not handled or N/A
CommsMapComponent.ImportResult.DEFERRED
if we should try again laterpublic static GeoPointMetaData getPrecisionLocation(CotEvent event)
event
- CoT eventpublic static CotDetail toPrecisionLocation(GeoPointMetaData gpmd)
gpmd
- Geo point metadata