|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjump.util.metaData.MetaInformationHandler
public class MetaInformationHandler
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
| Field Summary | |
|---|---|
protected PersonalLogger |
logger
|
protected ObjectContainingMetaInformation |
objectWithMetaInformation
|
| Constructor Summary | |
|---|---|
MetaInformationHandler(Layer layerWithMetaInformation)
|
|
MetaInformationHandler(ObjectContainingMetaInformation objectWithMetaInformation)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ObjectContainingMetaInformation objectWithMetaInformation
protected PersonalLogger logger
| Constructor Detail |
|---|
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 of| Method Detail |
|---|
public static final PirolFeatureCollection createPirolFeatureCollection(FeatureCollection fc)
fc - regular FeatureCollection
public static final PirolFeatureCollection createPirolFeatureCollection(FeatureCollection fc,
FeatureCollectionRole role)
fc - regular FeatureCollection
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||