public class WithAttributes extends java.lang.Object implements IWithAttributes, GpxConstants
GpxConstants.ColorFormat
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
attr
The "attr" hash is used to store the XML payload (not only XML attributes!)
|
private GpxExtensionCollection |
exts
The "exts" collection contains all extensions.
|
EXTENSION_ABBREVIATIONS, FIX_VALUES, GARMIN_COLORS, GPX_CMT, GPX_DESC, GPX_NAME, GPX_PREFIX, GPX_SRC, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_BOUNDS, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, PT_AGEOFDGPSDATA, PT_DGPSID, PT_ELE, PT_FIX, PT_GEOIDHEIGHT, PT_HDOP, PT_MAGVAR, PT_PDOP, PT_SAT, PT_SYM, PT_TIME, PT_TYPE, PT_VDOP, RTE_TRK_KEYS, RTKLIB_AGE, RTKLIB_Q, RTKLIB_RATIO, RTKLIB_SDE, RTKLIB_SDEU, RTKLIB_SDN, RTKLIB_SDNE, RTKLIB_SDU, RTKLIB_SDUN, WPT_KEYS, XML_URI_EXTENSIONS_DRAWING, XML_URI_EXTENSIONS_GARMIN, XML_URI_EXTENSIONS_JOSM, XML_URI_XSD, XML_XSD_EXTENSIONS_DRAWING, XML_XSD_EXTENSIONS_GARMIN, XML_XSD_EXTENSIONS_JOSM
Constructor and Description |
---|
WithAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get(java.lang.String key)
Returns the Object value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes
|
<T> java.util.Collection<T> |
getCollection(java.lang.String key)
Returns the Collection value to which the specified key is mapped,
or
null if this map contains no Collection mapping for the key. |
GpxExtensionCollection |
getExtensions()
Returns the extensions
|
java.lang.String |
getString(java.lang.String key)
Returns the String value to which the specified key is mapped,
or
null if this map contains no String mapping for the key. |
int |
hashCode() |
void |
put(java.lang.String key,
java.lang.Object value)
Put a key / value pair as a new attribute.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getExtensionAbbreviations, getGarminColors
public java.util.Map<java.lang.String,java.lang.Object> attr
private final GpxExtensionCollection exts
public WithAttributes()
public java.lang.Object get(java.lang.String key)
null
if this map contains no mapping for the key.get
in interface IWithAttributes
key
- the key whose associated value is to be returnedpublic java.lang.String getString(java.lang.String key)
null
if this map contains no String mapping for the key.getString
in interface IWithAttributes
key
- the key whose associated value is to be returnednull
if this map contains no String mapping for the keypublic <T> java.util.Collection<T> getCollection(java.lang.String key)
null
if this map contains no Collection mapping for the key.getCollection
in interface IWithAttributes
T
- type of itemskey
- the key whose associated value is to be returnednull
if this map contains no Collection mapping for the keypublic void put(java.lang.String key, java.lang.Object value)
put
in interface IWithAttributes
key
- the keyvalue
- the valuepublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
IWithAttributes
getAttributes
in interface IWithAttributes
public GpxExtensionCollection getExtensions()
IWithAttributes
getExtensions
in interface IWithAttributes
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object