|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.FeatureId
public class FeatureId
Used to identify persistent (stored) feature instances.
Constructor Summary | |
---|---|
FeatureId(MappedFeatureType ft,
java.lang.Object[] values)
Creates a new instance of FeatureId from the given parameters. |
|
FeatureId(MappedFeatureType ft,
java.lang.String fid)
Creates a new instance of FeatureId from the given parameters. |
|
FeatureId(MappedGMLId fidDefinition,
java.lang.Object[] values)
Deprecated. use FeatureId(MappedFeatureType, Object[]) instead |
|
FeatureId(MappedGMLId fidDefinition,
java.lang.String fid)
Deprecated. use FeatureId(MappedFeatureType, String) instead |
Method Summary | |
---|---|
int |
compareTo(FeatureId that)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.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. |
java.lang.Object |
getValue(int i)
Returns a certain column value of the key. |
java.lang.Object[] |
getValues()
Returns all column values of the key. |
int |
hashCode()
|
static java.lang.Object |
removeFIDPrefix(java.lang.String id,
MappedGMLId idMapping)
Removes the prefix from the given feature id. |
java.lang.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, java.lang.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, java.lang.String fid) throws IdGenerationException
FeatureId
from the given parameters.
ft
- cannot be null, must not be an abstract feature typefid
- cannot be null
IdGenerationException
@Deprecated public FeatureId(MappedGMLId fidDefinition, java.lang.Object[] values)
FeatureId(MappedFeatureType, Object[])
instead
FeatureId
from the given parameters.
fidDefinition
- cannot be nullvalues
- @Deprecated public FeatureId(MappedGMLId fidDefinition, java.lang.String fid) throws IdGenerationException
FeatureId(MappedFeatureType, String)
instead
FeatureId
from the given parameters.
fidDefinition
- cannot be nullfid
- 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 java.lang.Object[] getValues()
public java.lang.Object getValue(int i)
i
- requested column
public java.lang.String getAsString()
MappedGMLId
.
public int compareTo(FeatureId that)
compareTo
in interface java.lang.Comparable<FeatureId>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.Object removeFIDPrefix(java.lang.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.5 (2011/06/29 09:44 build-8-official) | |||||||||
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