Class MetaInformationHandler
java.lang.Object
org.openjump.util.metaData.MetaInformationHandler
- All Implemented Interfaces:
HandlerToMakeYourLifeEasier
Tool class for easier handling of meta information on a layer basis.
- objects will be created, if neccessary
- you don't need to access the properties map of the data source (where the meta information is stored) yourself
- objects will be created, if neccessary
- you don't need to access the properties map of the data source (where the meta information is stored) yourself
- Version:
- $Rev: 1559 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PersonalLoggerprotected ObjectContainingMetaInformation -
Constructor Summary
ConstructorsConstructorDescriptionMetaInformationHandler(Layer layerWithMetaInformation) MetaInformationHandler(ObjectContainingMetaInformation objectWithMetaInformation) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaInformation(String key, Object value) Adds a new meta information key-value-pair to the meta information map, replaces an existing pair with the same key.voidclear()booleanbooleancontainsKey(String key) booleanbooleancontainsValue(Object value) static PirolFeatureCollectioncreates a PirolFeatureCollection out of a regular FeatureCollectionstatic PirolFeatureCollectioncreates a PirolFeatureCollection out of a regular FeatureCollectionRetrieve the existent meta information map.getMetaInformation(String key) Retrieve the existent meta information map or create one.keySet()voidputAttribute2UnitMap(Attribute2UnitMap attribute2UnitMap) voidsetMetaData(HashMap<Object, Object> metaData)
-
Field Details
-
objectWithMetaInformation
-
logger
-
-
Constructor Details
-
MetaInformationHandler
- Parameters:
layerWithMetaInformation- the layer you want the meta information of (has to have a DataSource!!)
-
MetaInformationHandler
- Parameters:
objectWithMetaInformation- the object you want the meta information of
-
-
Method Details
-
createPirolFeatureCollection
creates a PirolFeatureCollection out of a regular FeatureCollection- Parameters:
fc- regular FeatureCollection- Returns:
- PirolFeatureCollection
-
createPirolFeatureCollection
public static PirolFeatureCollection createPirolFeatureCollection(FeatureCollection fc, FeatureCollectionRole role) creates a PirolFeatureCollection out of a regular FeatureCollection- Parameters:
fc- regular FeatureCollection- Returns:
- PirolFeatureCollection
-
getExistentMetaInformationMap
Retrieve the existent meta information map.- Returns:
- the existent meta information map or null, if there is none
-
getMetaInformationMap
Retrieve the existent meta information map or create one.- Returns:
- the existent meta information map or an empty meta information map (that is now attached to the DataSource)
-
containsMetaInformation
public boolean containsMetaInformation()- Returns:
- true if the given layer already contains meta information, false if not
-
addMetaInformation
-
getMetaData
-
setMetaData
-
clear
public void clear() -
containsKey
-
getMetaInformation
-
containsValue
-
keySet
-
remove
-
getAttribute2UnitMap
- Returns:
- the Attribute2UnitMap of the given DataSource or null, if there is none
-
putAttribute2UnitMap
-
containsAttribute2UnitMap
public boolean containsAttribute2UnitMap()
-