org.opengis.filter.identity
Interface ResourceId

All Superinterfaces:
FeatureId, Identifier
All Known Implementing Classes:
ResourceIdImpl

@XmlElement(value="ResourceId")
public interface ResourceId
extends FeatureId

Resource identifier as per FES 2.0.

Please note this is a query object for use with the Filter Id filter as shown:

Filter filter = filterFactory.id(
    ff.featureId("CITY.123"),
    ff.resourceId("CITY.123",Version.Action.PREVIOUS) );
In cases where a plain FetureId is used for lookup it is understood to refer to Version.Action.LAST.

If an implementation that references this International Standard does not support versioning, any value specified for the attributes previousRid, version, startTime, and endTime shall be ignored and the predicate shall always select the single version that is available.


Field Summary
 
Fields inherited from interface FeatureId
VERSION_SEPARATOR
 
Method Summary
 Date getEndTime()
          Used to select versions of a resource between start and end time.
 Date getStartTime()
          Used to select versions of a resource between start and end time.
 Version getVersion()
          Used to navigate versions of a resource.
 
Methods inherited from interface FeatureId
equalsExact, equalsFID, getFeatureVersion, getID, getPreviousRid, getRid, matches
 
Methods inherited from interface Identifier
equals, hashCode, toString
 

Method Detail

getVersion

@XmlElement(value="version")
Version getVersion()
Used to navigate versions of a resource.

Returns:
Version based resource query; non null but possibly empty if used a date range query or asked for a specific feature id + version id

getStartTime

@XmlElement(value="startTime")
Date getStartTime()
Used to select versions of a resource between start and end time.

Returns:
start time for a time based query; or null if using version or an end time was provided but the start time is unconstrained TODO: consider using an org.geotools.util.Range instead of both start and end time?

getEndTime

@XmlElement(value="endTime")
Date getEndTime()
Used to select versions of a resource between start and end time.

Returns:
end time for a time based query; or null if using version or an start time was provided but the end time is unconstrained TODO: consider using an org.geotools.util.Range instead of both start and end time?


Copyright © 1996-2014 Geotools. All Rights Reserved.