public class MetaInformationHandler extends java.lang.Object implements HandlerToMakeYourLifeEasier
Modifier and Type | Field and Description |
---|---|
protected PersonalLogger |
logger |
protected ObjectContainingMetaInformation |
objectWithMetaInformation |
Constructor and Description |
---|
MetaInformationHandler(Layer layerWithMetaInformation) |
MetaInformationHandler(ObjectContainingMetaInformation objectWithMetaInformation) |
Modifier and Type | Method and Description |
---|---|
void |
addMetaInformation(java.lang.String key,
java.lang.Object value)
Adds a new meta information key-value-pair to the meta information map, replaces
an existing pair with the same key.
|
void |
clear() |
boolean |
containsAttribute2UnitMap() |
boolean |
containsKey(java.lang.String key) |
boolean |
containsMetaInformation() |
boolean |
containsValue(java.lang.Object value) |
static PirolFeatureCollection |
createPirolFeatureCollection(FeatureCollection fc)
creates a PirolFeatureCollection out of a regular FeatureCollection
|
static PirolFeatureCollection |
createPirolFeatureCollection(FeatureCollection fc,
FeatureCollectionRole role)
creates a PirolFeatureCollection out of a regular FeatureCollection
|
Attribute2UnitMap |
getAttribute2UnitMap() |
MetaDataMap |
getExistentMetaInformationMap()
Retrieve the existent meta information map.
|
java.util.HashMap |
getMetaData() |
java.lang.Object |
getMetaInformation(java.lang.String key) |
MetaDataMap |
getMetaInformationMap()
Retrieve the existent meta information map or create one.
|
java.util.Set |
keySet() |
void |
putAttribute2UnitMap(Attribute2UnitMap attribute2UnitMap) |
java.lang.Object |
remove(java.lang.String key) |
void |
setMetaData(java.util.HashMap<java.lang.Object,java.lang.Object> metaData) |
protected ObjectContainingMetaInformation objectWithMetaInformation
protected PersonalLogger logger
public MetaInformationHandler(Layer layerWithMetaInformation)
layerWithMetaInformation
- the layer you want the meta information of (has to have a DataSource!!)public MetaInformationHandler(ObjectContainingMetaInformation objectWithMetaInformation)
objectWithMetaInformation
- the object you want the meta information ofpublic static final PirolFeatureCollection createPirolFeatureCollection(FeatureCollection fc)
fc
- regular FeatureCollectionpublic static final PirolFeatureCollection createPirolFeatureCollection(FeatureCollection fc, FeatureCollectionRole role)
fc
- regular FeatureCollectionpublic MetaDataMap getExistentMetaInformationMap()
public MetaDataMap getMetaInformationMap()
RuntimeException,
- if the given DataSource doesn't even have properties (getProperties()
)public boolean containsMetaInformation()
public void addMetaInformation(java.lang.String key, java.lang.Object value)
key
- value
- public java.util.HashMap getMetaData()
public void setMetaData(java.util.HashMap<java.lang.Object,java.lang.Object> metaData)
public void clear()
public boolean containsKey(java.lang.String key)
public java.lang.Object getMetaInformation(java.lang.String key)
public boolean containsValue(java.lang.Object value)
public java.util.Set keySet()
public java.lang.Object remove(java.lang.String key)
public Attribute2UnitMap getAttribute2UnitMap()
public void putAttribute2UnitMap(Attribute2UnitMap attribute2UnitMap)
public boolean containsAttribute2UnitMap()