Package adams.data.mapobject
Interface MetaDataSupporter
-
- All Superinterfaces:
org.openstreetmap.gui.jmapviewer.interfaces.MapObject
,adams.core.MetaDataSupporter
- All Known Implementing Classes:
AbstractMapObject
,SimpleMapMarkerCircle
,SimpleMapMarkerDot
,SimpleMapPolygon
,SimpleMapRectangle
public interface MetaDataSupporter extends org.openstreetmap.gui.jmapviewer.interfaces.MapObject, adams.core.MetaDataSupporter
Interface forMapObject
objects that support meta-data.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
addMetaData(String key, Object value)
Adds a key-value pair to the meta-data store.Map<String,Object>
getMetaData()
Returns the meta-data store.Object
getMetaData(String key)
Returns the specified value from the meta-data store.Set<String>
metaDataKeys()
Returns the set of meta-data keys.Object
removeMetaData(String key)
Removes a key-value pair from the meta-data store.
-
-
-
Method Detail
-
addMetaData
Object addMetaData(String key, Object value)
Adds a key-value pair to the meta-data store.- Specified by:
addMetaData
in interfaceadams.core.MetaDataSupporter
- Parameters:
key
- the key to store the value forvalue
- the value to store- Returns:
- any previously stored object for this key, otherwise null
-
removeMetaData
Object removeMetaData(String key)
Removes a key-value pair from the meta-data store.- Specified by:
removeMetaData
in interfaceadams.core.MetaDataSupporter
- Parameters:
key
- the key to remove the value for- Returns:
- any previously stored object for this key, null if none was present
-
getMetaData
Object getMetaData(String key)
Returns the specified value from the meta-data store.- Specified by:
getMetaData
in interfaceadams.core.MetaDataSupporter
- Parameters:
key
- the key to retrieve the value for- Returns:
- stored object for this key, null if none was present
-
getMetaData
Map<String,Object> getMetaData()
Returns the meta-data store.- Specified by:
getMetaData
in interfaceadams.core.MetaDataSupporter
- Returns:
- the meta-data
-
-