public class FeatureIdImpl extends Object implements FeatureId
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.
| Modifier and Type | Field and Description |
|---|---|
protected String |
fid
underlying fid
|
protected String |
origionalFid |
VERSION_SEPARATOR| Constructor and Description |
|---|
FeatureIdImpl(String fid) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public FeatureIdImpl(String fid)
public String getID()
FeatureIdgetID in interface FeatureIdgetID in interface Identifierpublic void setID(String id)
public boolean matches(Feature feature)
public boolean matches(Object object)
FeatureIdmatches in interface FeatureIdmatches in interface Identifierobject - The feature to be tested.true if a match, otherwise false.public String toString()
IdentifiertoString in interface IdentifiertoString in class Objectpublic boolean equals(Object obj)
Identifierequals in interface Identifierequals in class Objectpublic int hashCode()
IdentifierhashCode in interface IdentifierhashCode in class Objectpublic boolean equalsExact(FeatureId id)
FeatureIdequalsExact in interface FeatureIdpublic boolean equalsFID(FeatureId id)
FeatureIdThis comparison does not compare any optional version information.
public String getRid()
FeatureIdEquals 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.
public String getPreviousRid()
FeatureIdgetPreviousRid in interface FeatureIdnullpublic String getFeatureVersion()
FeatureIdnullgetFeatureVersion in interface FeatureIdnull if not availableFeatureId.getID(),
FeatureId.getRid()Copyright © 1996–2021 Geotools. All rights reserved.