|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.datastore.FeatureId
public class FeatureId
Used to identify persistent (stored) feature instances.
Constructor Summary | |
---|---|
FeatureId(MappedFeatureType ft,
Object[] values)
Creates a new instance of FeatureId from the given parameters. |
|
FeatureId(MappedFeatureType ft,
String fid)
Creates a new instance of FeatureId from the given parameters. |
Method Summary | |
---|---|
int |
compareTo(FeatureId that)
|
boolean |
equals(Object obj)
|
String |
getAsString()
Returns the canonical textual representation, i.e. the key components, separated by the separator defined in the associated MappedGMLId . |
MappedFeatureType |
getFeatureType()
Return the MappedFeatureType of the identified feature. |
MappedGMLId |
getFidDefinition()
Return the underlying MappedGMLId . |
int |
getLength()
Returns the number of components that the key consists of. |
Object |
getValue(int i)
Returns a certain column value of the key. |
Object[] |
getValues()
Returns all column values of the key. |
int |
hashCode()
|
static Object |
removeFIDPrefix(String id,
MappedGMLId idMapping)
Removes the prefix from the given feature id. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeatureId(MappedFeatureType ft, Object[] values)
FeatureId
from the given parameters.
ft
- cannot be null, must not be an abstract feature typevalues
- cannot be null or emptypublic FeatureId(MappedFeatureType ft, String fid) throws IdGenerationException
FeatureId
from the given parameters.
ft
- cannot be null, must not be an abstract feature typefid
- cannot be null
IdGenerationException
Method Detail |
---|
public MappedFeatureType getFeatureType()
MappedFeatureType
of the identified feature.
The feature type is concrete, never abstract.
public MappedGMLId getFidDefinition()
MappedGMLId
.
public int getLength()
public Object[] getValues()
public Object getValue(int i)
i
- requested column
public String getAsString()
MappedGMLId
.
public int compareTo(FeatureId that)
compareTo
in interface Comparable<FeatureId>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public static Object removeFIDPrefix(String id, MappedGMLId idMapping) throws IdGenerationException
The prefix is taken from the given gml:id mapping.
id
- feature id (including prefix).idMapping
- target gml:id mapping (where the fid will be stored)
IdGenerationException
- if the given fid does not begin with the expected prefix from the gml:id mapping
|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org