- Type Parameters:
R
- the type of resources (e.g.Feature
) to filter.
@UML(identifier="SpatialOperator",
specification=ISO_19143)
public interface ResourceId<R>
extends Filter<R>
Predicate to identify any identifiable resource within a filter expression.
This predicates uses a unique identifier for an instance of a resource within
the context of the service that is serving the resource.
Versioning
Theidentifier
property is mandatory.
Other properties can be used to navigate versions of a resource if an implementation supports versioning.
If an implementation does not support versioning, any value specified for these attributes are ignored
and the predicate always select the single version that is available.- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionSelects all versions of a resource between the specified start date and end date.Specifies the identifier of the resource that shall be selected by the predicate.default CodeList<?>
Returns the nature of this operator.Selects all versions of a resource between the specified start date and end date.Specifies which version of the resource shall be selected.Methods inherited from interface Filter
getExpressions, test
-
Method Details
-
getOperatorType
Returns the nature of this operator. The default implementation returnsRESOURCE_ID
.- Specified by:
getOperatorType
in interfaceFilter<R>
- Returns:
- the nature of the operator.
-
getIdentifier
Specifies the identifier of the resource that shall be selected by the predicate. If the implementation supports versioning, this identifier is a system generated hash containing a logical resource identifier and a version number. The specific details of the hash are implementation dependent and is opaque to clients.- Returns:
- the identifier of the resource that shall be selected by the predicate.
-
getVersion
@UML(identifier="version", obligation=CONDITIONAL, specification=ISO_19143) default Optional<Version> getVersion()Specifies which version of the resource shall be selected. The version may be an integer indicating the Nth version, a date for selecting the version closest to the specified date, or an action such asFIRST
,LATEST
,PREVIOUS
,NEXT
orALL
.- Returns:
- version of the resource to select.
-
getStartTime
@UML(identifier="startTime", obligation=CONDITIONAL, specification=ISO_19143) default Optional<Instant> getStartTime()Selects all versions of a resource between the specified start date and end date. ThestartTime
andendTime
attributes shall always be specified together. If thestartTime
andendTime
are specified, then theversion
attribute shall not be specified.- Returns:
- start date and time of versions to select.
-
getEndTime
@UML(identifier="endTime", obligation=CONDITIONAL, specification=ISO_19143) default Optional<Instant> getEndTime()Selects all versions of a resource between the specified start date and end date. ThestartTime
andendTime
attributes shall always be specified together. If thestartTime
andendTime
are specified, then theversion
attribute shall not be specified.- Returns:
- end date and time of versions to select.
-