|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhpotsdam.unfolding.data.Feature
public class Feature
A feature stores one or more locations, its type, and additional data properties.
Nested Class Summary | |
---|---|
static class |
Feature.FeatureType
|
Field Summary | |
---|---|
java.util.HashMap<java.lang.String,java.lang.Object> |
properties
Stores data properties. |
Constructor Summary | |
---|---|
Feature(Feature.FeatureType type)
Creates a feature for a specific type. |
Method Summary | |
---|---|
java.lang.Object |
addProperty(java.lang.String key,
java.lang.Object value)
Adds a property to this feature. |
java.lang.String |
getId()
Returns the ID of this feature. |
java.util.HashMap<java.lang.String,java.lang.Object> |
getProperties()
Returns all data properties. |
java.lang.Object |
getProperty(java.lang.String key)
Returns a property for the key. |
java.lang.String |
getStringProperty(java.lang.String key)
Returns the value of a String property. |
Feature.FeatureType |
getType()
Returns the type of this feature. |
void |
putProperty(java.lang.String key,
java.lang.Object value)
Adds a property to this feature. |
void |
setId(java.lang.String id)
Sets the ID of this feature. |
void |
setProperties(java.util.HashMap<java.lang.String,java.lang.Object> properties)
Sets all properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.HashMap<java.lang.String,java.lang.Object> properties
Constructor Detail |
---|
public Feature(Feature.FeatureType type)
type
- The type of this feature.Method Detail |
---|
public Feature.FeatureType getType()
public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String key)
key
- The key of the property.
public java.lang.Object addProperty(java.lang.String key, java.lang.Object value)
key
- The key of this property.value
- The value of this property.public void putProperty(java.lang.String key, java.lang.Object value)
key
- The key of this property.value
- The value of this property.public java.lang.String getStringProperty(java.lang.String key)
getProperty(String)
and convert it yourself.
key
- The key of the property.
public void setProperties(java.util.HashMap<java.lang.String,java.lang.Object> properties)
properties
- The data properties.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The ID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |