Package org.openjump.util.metaData
Class MetaDataMap
- java.lang.Object
-
- org.openjump.util.metaData.MetaDataMap
-
public class MetaDataMap extends Object
Class to store meta information of various kinds in a map. By default an object of this class will be added to the properties of a DataSource (and is hopefully saved, when e.g. the task is saved).- Version:
- $Rev: 2434 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
-
Constructor Summary
Constructors Constructor Description MetaDataMap()constructor (needs to be parameterless in order for java2xml to be able to load it)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetaInformation(Object key, Object value)Adds a new meta information to the mapvoidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Objectget(String key)HashMapgetMetaData()Gets all meta information in one map objectSetkeySet()voidputAll(Map<Object,Object> arg0)Objectremove(Object key)voidsetMetaData(HashMap<Object,Object> metaData)Sets (overwrites) the stored meta information
-
-
-
Method Detail
-
addMetaInformation
public void addMetaInformation(Object key, Object value)
Adds a new meta information to the map- Parameters:
key- the kind of informationvalue- the information itself
-
getMetaData
public HashMap getMetaData()
Gets all meta information in one map object- Returns:
- all stored meta information
-
setMetaData
public void setMetaData(HashMap<Object,Object> metaData)
Sets (overwrites) the stored meta information- Parameters:
metaData- metadata as a HashMap mapping Objects to Objects
-
clear
public void clear()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
keySet
public Set keySet()
-
-