Class ResourceId
java.lang.Object
org.opengis.cite.iso19142.basic.filter.ResourceId
A resource identifier as defined in ISO 19143 (OGC Filter Encoding 2.0 Encoding
Standard). It may have additional information about a specific version of a
resource, and can be used to request specific versions in a filter expression.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceId(String rid) Constructs a new identifier for the resource version. -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()Get the identifier of the previous version.getRid()Get the identifier for this resource version.getStart()Get the version designation for this resource version.voidSet the ending instant of a temporal interval for selecting resource versions.voidsetPreviousRid(String previousRid) Set identifier of the previous version.voidSet the starting instant of a temporal interval for selecting resource versions.voidsetVersion(String version) Set the version designation for this resource version.Creates a DOM Element representing this resource identifier.toString()
-
Field Details
-
dateTimeFormatter
DateTimeFormatter dateTimeFormatter
-
-
Constructor Details
-
ResourceId
Constructs a new identifier for the resource version. All members of the version chain have a unique rid value.- Parameters:
rid- A String that is a legal XML Schema ID (xsd:ID) value.
-
-
Method Details
-
getRid
Get the identifier for this resource version.- Returns:
- A String that is a legal xsd:ID value.
-
getPreviousRid
Get the identifier of the previous version.- Returns:
- A String that identifies the predecessor, or null if there isn't one.
-
setPreviousRid
Set identifier of the previous version.- Parameters:
previousRid- A valid xsd:ID value.
-
getVersion
Get the version designation for this resource version.- Returns:
- A version designation, or null it no value was set.
-
setVersion
Set the version designation for this resource version. It must adhere to one of the following schemes:- A positive integer value (1,2,...);
- A time instant (xsd:dateTime value) indicating when the version was created;
- One of the following tokens: "FIRST", "LAST", "PREVIOUS", "NEXT", "ALL" (primarily used to select resource versions).
- Parameters:
version- A version designator that adheres to a recognized scheme.
-
getStart
-
setStart
Set the starting instant of a temporal interval for selecting resource versions. An ending instant must also be specified to define a closed interval.- Parameters:
startDateTime- A lexical representation of an xsd:dateTime value.
-
getEnd
-
setEnd
Set the ending instant of a temporal interval for selecting resource versions.- Parameters:
endDateTime- A lexical representation of an xsd:dateTime value.
-
toString
-
toElement
Creates a DOM Element representing this resource identifier.- Returns:
- An empty fes:ResourceId element with the attributes set accordingly.
-