public interface IWithAttributes
Modifier and Type | Method and Description |
---|---|
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. |
void |
put(java.lang.String key,
java.lang.Object value)
Put a key / value pair as a new attribute.
|
java.lang.Object get(java.lang.String key)
null
if this map contains no mapping for the key.key
- the key whose associated value is to be returnedjava.lang.String getString(java.lang.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> java.util.Collection<T> getCollection(java.lang.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(java.lang.String key, java.lang.Object value)
key
- the keyvalue
- the valuejava.util.Map<java.lang.String,java.lang.Object> getAttributes()
GpxExtensionCollection getExtensions()