Package org.geotools.filter.identity
Class FeatureIdImpl
Object
FeatureIdImpl
- All Implemented Interfaces:
FeatureId,Identifier
- Direct Known Subclasses:
FeatureIdVersionedImpl
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.
- Since:
- 2.5
- Author:
- Justin Deoliveira, The Open Planning Project
-
Field Summary
FieldsFields inherited from interface FeatureId
VERSION_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentifier is a data object, equals is based just on getID()booleanequalsExact(FeatureId id) Check if the provided FeatureId is an exact match (including any optional version information).booleanChecks if the provided FeatureId reflects the same feature.Version identifier for the feature instance, may benullgetID()The identifier value, which is a string.previousRid attribute may be used, in implementations that support versioning, to report the previous identifier of a resource.getRid()id of the resource that shall be selected by the predicate.inthashCode()Identifier is a data object, hashCode is based just on getID()booleanEvaluates the identifer value against the given feature.booleanvoidtoString()Returns a string representation of the identifier.
-
Field Details
-
fid
underlying fid -
origionalFid
-
-
Constructor Details
-
FeatureIdImpl
-
-
Method Details
-
getID
Description copied from interface:FeatureIdThe identifier value, which is a string.- Specified by:
getIDin interfaceFeatureId- Specified by:
getIDin interfaceIdentifier
-
setID
-
matches
-
matches
Description copied from interface:FeatureIdEvaluates the identifer value against the given feature.- Specified by:
matchesin interfaceFeatureId- Specified by:
matchesin interfaceIdentifier- Parameters:
object- The feature to be tested.- Returns:
trueif a match, otherwisefalse.
-
toString
Description copied from interface:IdentifierReturns a string representation of the identifier.- Specified by:
toStringin interfaceIdentifier- Overrides:
toStringin classObject- Returns:
- getID().toString()
-
equals
Description copied from interface:IdentifierIdentifier is a data object, equals is based just on getID()- Specified by:
equalsin interfaceIdentifier- Overrides:
equalsin classObject- Returns:
- true if obj is an Identifier with the same getID()
-
hashCode
public int hashCode()Description copied from interface:IdentifierIdentifier is a data object, hashCode is based just on getID()- Specified by:
hashCodein interfaceIdentifier- Overrides:
hashCodein classObject- Returns:
- hashCode based on getID()
-
equalsExact
Description copied from interface:FeatureIdCheck if the provided FeatureId is an exact match (including any optional version information).- Specified by:
equalsExactin interfaceFeatureId- Returns:
- true if this is an exact match (including any optional version information)
-
equalsFID
Description copied from interface:FeatureIdChecks if the provided FeatureId reflects the same feature.This comparison does not compare any optional version information.
-
getRid
Description copied from interface:FeatureIdid of the resource that shall be selected by the predicate.Equals to
FeatureId.getID()if no feature version is provided, orgetID() + "@" + getFeatureVersion()ifgetFeatureVersion() != nullIf 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. -
getPreviousRid
Description copied from interface:FeatureIdpreviousRid attribute may be used, in implementations that support versioning, to report the previous identifier of a resource.- Specified by:
getPreviousRidin interfaceFeatureId- Returns:
- Previous rid if available; or
null
-
getFeatureVersion
Description copied from interface:FeatureIdVersion identifier for the feature instance, may benull- Specified by:
getFeatureVersionin interfaceFeatureId- Returns:
- Optional version information;
nullif not available - See Also:
-