public class TakVersionDetailHandler extends CotDetailHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
TakVersionDetailHandler.Platform |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_DEVICE |
static java.lang.String |
ATTR_OS |
static java.lang.String |
ATTR_PLATFORM |
static java.lang.String |
ATTR_VERSION |
static java.lang.String |
VERSION_DETAIL |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDevice(PointMapItem marker) |
static java.lang.String |
getDeviceDescription() |
static java.lang.String |
getDeviceOS() |
static java.lang.String |
getDeviceOs(PointMapItem marker)
Given a marker, return the devices OS.
|
static java.lang.String |
getVersion() |
static java.lang.String |
getVersion(PointMapItem marker) |
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
|
getDetailNames, getMapItem, getPoint, isSupported, parseDouble, parseIntpublic static final java.lang.String VERSION_DETAIL
public static final java.lang.String ATTR_PLATFORM
public static final java.lang.String ATTR_VERSION
public static final java.lang.String ATTR_DEVICE
public static final java.lang.String ATTR_OS
public CommsMapComponent.ImportResult toItemMetadata(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandlertoItemMetadata in class CotDetailHandleritem - 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 boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandlertoCotDetail in class CotDetailHandleritem - Map item to readevent - Item's associated CoT eventdetail - The CoT event root detail (add to this)public static java.lang.String getVersion(PointMapItem marker)
public static java.lang.String getVersion()
public static java.lang.String getDevice(PointMapItem marker)
public static java.lang.String getDeviceOs(PointMapItem marker)
marker - the markerpublic static java.lang.String getDeviceOS()
public static java.lang.String getDeviceDescription()