|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureIdImpl
public class FeatureIdImpl
Implementation of FeatureId
This class is mutable under one condition only; during a commit a datastore can update the internal fid to reflect the real identify assigned by the database or wfs.
Field Summary | |
---|---|
protected String |
fid
underlying fid |
protected String |
origionalFid
|
Fields inherited from interface FeatureId |
---|
VERSION_SEPARATOR |
Constructor Summary | |
---|---|
FeatureIdImpl(String fid)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Identifier is a data object, equals is based just on getID() |
boolean |
equalsExact(FeatureId id)
Check if the provided FeatureId is an exact match (including any optional version information). |
boolean |
equalsFID(FeatureId id)
Checks if the provided FeatureId reflects the same feature. |
String |
getFeatureVersion()
Version identifier for the feature instance, may be null |
String |
getID()
The identifier value, which is a string. |
String |
getPreviousRid()
previousRid attribute may be used, in implementations that support versioning, to report the previous identifier of a resource. |
String |
getRid()
id of the resource that shall be selected by the predicate. |
int |
hashCode()
Identifier is a data object, hashCode is based just on getID() |
boolean |
matches(Feature feature)
|
boolean |
matches(Object object)
Evaluates the identifer value against the given feature. |
void |
setID(String id)
|
String |
toString()
Returns a string representation of the identifier. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String fid
protected String origionalFid
Constructor Detail |
---|
public FeatureIdImpl(String fid)
Method Detail |
---|
public String getID()
FeatureId
getID
in interface FeatureId
getID
in interface Identifier
public void setID(String id)
public boolean matches(Feature feature)
public boolean matches(Object object)
FeatureId
matches
in interface FeatureId
matches
in interface Identifier
object
- The feature to be tested.
true
if a match, otherwise false
.public String toString()
Identifier
toString
in interface Identifier
toString
in class Object
public boolean equals(Object obj)
Identifier
equals
in interface Identifier
equals
in class Object
public int hashCode()
Identifier
hashCode
in interface Identifier
hashCode
in class Object
public boolean equalsExact(FeatureId id)
FeatureId
equalsExact
in interface FeatureId
public boolean equalsFID(FeatureId id)
FeatureId
This comparison does not compare any optional version information.
equalsFID
in interface FeatureId
public String getRid()
FeatureId
Equals to FeatureId.getID()
if no feature version is provided, or
getID() + "@" + getFeatureVersion()
if getFeatureVersion() != null
If an implementation that references this International Standard supports versioning, the rid shall be a system generated hash containing a logical resource identifier and a version number. The specific details of the hash are implementation dependant and shall be opaque to a client
If versioning is not supported, the same value than FeatureId.getID()
shall be
returned.
getRid
in interface FeatureId
public String getPreviousRid()
FeatureId
getPreviousRid
in interface FeatureId
null
public String getFeatureVersion()
FeatureId
null
getFeatureVersion
in interface FeatureId
null
if not availableFeatureId.getID()
,
FeatureId.getRid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |