org.openstreetmap.josm.data.gpx
Class WithAttributes

java.lang.Object
  extended by org.openstreetmap.josm.data.gpx.WithAttributes
Direct Known Subclasses:
GpxData, GpxRoute, WayPoint

public class WithAttributes
extends java.lang.Object

Base class for various classes in the GPX model.

Since:
444

Field Summary
 java.util.Map<java.lang.String,java.lang.Object> attr
          The "attr" hash is used to store the XML payload (not only XML attributes!)
 
Constructor Summary
WithAttributes()
           
 
Method Summary
 java.util.Collection<?> 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attr

public java.util.Map<java.lang.String,java.lang.Object> attr
The "attr" hash is used to store the XML payload (not only XML attributes!)

Constructor Detail

WithAttributes

public WithAttributes()
Method Detail

getString

public 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.

Parameters:
key - the key whose associated value is to be returned
Returns:
the String value to which the specified key is mapped, or null if this map contains no String mapping for the key

getCollection

public java.util.Collection<?> 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.

Parameters:
key - the key whose associated value is to be returned
Returns:
the Collection value to which the specified key is mapped, or null if this map contains no Collection mapping for the key
Since:
5502


JOSM