public interface IWithAttributes
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String key,
String value)
Add a key / value pair that is not part of the GPX schema as an extension.
|
Object |
get(String key)
Returns the Object value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
<T> Collection<T> |
getCollection(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. |
String |
getString(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. |
void |
put(String key,
Object value)
Put a key / value pair as a new attribute.
|
Object get(String key)
null
if this map contains no mapping for the key.key
- the key whose associated value is to be returnedString getString(String key)
null
if this map contains no String mapping for the key.key
- the key whose associated value is to be returnednull
if this map contains no String mapping for the key<T> Collection<T> getCollection(String key)
null
if this map contains no Collection mapping for the key.T
- type of itemskey
- the key whose associated value is to be returnednull
if this map contains no Collection mapping for the keyvoid put(String key, Object value)
key
- the keyvalue
- the valuevoid addExtension(String key, String value)
key
- the keyvalue
- the value