public class CotUtils
extends java.lang.Object
Constructor and Description |
---|
CotUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSetBoolean(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
Given a detail, checks to see if the map item contains the boolean and if so converts it to the
desired attribute tag within the element defined by the CotDetail.
|
static void |
checkSetDouble(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
Given a detail, checks to see if the map item contains the double and if so converts it to the
desired attribute tag within the element defined by the CotDetail.
|
static void |
checkSetInt(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
Given a detail, checks to see if the map item contains the int and if so converts it to the
desired attribute tag within the element defined by the CotDetail.
|
static void |
checkSetLong(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
Given a detail, checks to see if the map item contains the long and if so converts it to the
desired attribute tag within the element defined by the CotDetail.
|
static void |
checkSetString(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
Given a detail, checks to see if the map item contains the String and if so converts it to the
desired attribute tag within the element defined by the CotDetail.
|
static void |
checkSetTime(CotDetail editor,
MapItem data,
java.lang.String metaKey,
java.lang.String attrKey)
The ability to set a time given an attribute in the CotDetail provided a map item and the
metaKey
|
static java.lang.String |
getCallsign(CotEvent event) |
static void |
setBoolean(MapItem m,
java.lang.String key,
java.lang.String val)
Provided a marker and a key, convert the string value to a boolean and set the value in
the map item
|
static void |
setDouble(MapItem m,
java.lang.String key,
java.lang.String val)
Provided a marker and a key, convert the string value to a double and set the value in
the map item
|
static void |
setInteger(MapItem m,
java.lang.String key,
java.lang.String val)
Provided a marker and a key, convert the string value to a integer and set the value in
the map item
|
static void |
setLong(MapItem m,
java.lang.String key,
java.lang.String val)
Provided a marker and a key, convert the string value to a long and set the value in
the map item
|
static void |
setString(MapItem m,
java.lang.String key,
java.lang.String val)
Provided a marker and a key, checks to make sure the string cannot be null.
|
public static void checkSetTime(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the CotDetail to be modifieddata
- the map itemmetaKey
- the key used from the map itemattrKey
- the attribute to set in the CotDetail.public static void checkSetLong(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the cot detaildata
- the map itemmetaKey
- the metadata key for the map itemattrKey
- the attribute for the corresponding detail.public static void checkSetInt(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the cot detaildata
- the map itemmetaKey
- the metadata key for the map itemattrKey
- the attribute for the corresponding detail.public static void checkSetDouble(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the cot detaildata
- the map itemmetaKey
- the metadata key for the map itemattrKey
- the attribute for the corresponding detail.public static void checkSetString(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the cot detaildata
- the map itemmetaKey
- the metadata key for the map itemattrKey
- the attribute for the corresponding detail.public static void checkSetBoolean(CotDetail editor, MapItem data, java.lang.String metaKey, java.lang.String attrKey)
editor
- the cot detaildata
- the map itemmetaKey
- the metadata key for the map itemattrKey
- the attribute for the corresponding detail.public static void setDouble(MapItem m, java.lang.String key, java.lang.String val)
m
- the map itemkey
- the corresponding key to setval
- the value in string form.public static void setInteger(MapItem m, java.lang.String key, java.lang.String val)
m
- the map itemkey
- the corresponding key to setval
- the value in string form.public static void setLong(MapItem m, java.lang.String key, java.lang.String val)
m
- the map itemkey
- the corresponding key to setval
- the value in string form.public static void setBoolean(MapItem m, java.lang.String key, java.lang.String val)
m
- the map itemkey
- the corresponding key to setval
- the value in string form.public static void setString(MapItem m, java.lang.String key, java.lang.String val)
m
- the map itemkey
- the corresponding key to setval
- the value in string form.public static java.lang.String getCallsign(CotEvent event)