public final class TLcdOGCResourceId extends TLcdDataObject implements ILcdOGCCondition
This class represents an OGC Filter 2.0 resource ID.
You should use this in combination with a TLcdOGCResourceIdsOperator
, see also TLcdOGCFilterFactory.resourceIds(String...)
.
When evaluating
a condition with resource IDs, the evaluator will compare the rid
with the object's ID,
defined by a ILcdOGCFeatureIDRetriever
(typically through TLcdPrimaryKeyAnnotation
).
The version
and date
properties are ignored.
When serialized to an OGC Filter 1.1 (for example WFS 1), the resource ID condition is translated to object IDs on the filter.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
END_DATE_PROPERTY
Data property that maps to the
endDate attribute. |
static TLcdDataProperty |
PREVIOUS_RID_PROPERTY
Data property that maps to the
previousRid attribute. |
static TLcdDataProperty |
RID_PROPERTY
Data property that maps to the
rid attribute. |
static TLcdDataProperty |
START_DATE_PROPERTY
Data property that maps to the
startDate attribute. |
static TLcdDataProperty |
VERSION_PROPERTY
Data property that maps to the
version attribute. |
Constructor and Description |
---|
TLcdOGCResourceId()
Create a new, empty resource ID.
|
TLcdOGCResourceId(String aID)
Create a new resource ID for the given ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
XMLGregorianCalendar |
getEndDate()
Returns the value of the property that maps to the
endDate attribute. |
String |
getPreviousRid()
Returns the value of the property that maps to the
previousRid attribute. |
String |
getRid()
Returns the value of the property that maps to the
rid attribute. |
XMLGregorianCalendar |
getStartDate()
Returns the value of the property that maps to the
startDate attribute. |
Object |
getVersion()
Returns the value of the property that maps to the
version attribute. |
int |
hashCode() |
void |
setEndDate(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
endDate attribute. |
void |
setPreviousRid(String aValue)
Sets the value of the property that maps to the
previousRid attribute. |
void |
setRid(String aValue)
Sets the value of the property that maps to the
rid attribute. |
void |
setStartDate(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
startDate attribute. |
void |
setVersion(Object aValue)
Sets the value of the property that maps to the
version attribute. |
public static final TLcdDataProperty END_DATE_PROPERTY
endDate
attribute.
The possible values for this property are instances of javax.xml.datatype.XMLGregorianCalendar
.public static final TLcdDataProperty PREVIOUS_RID_PROPERTY
previousRid
attribute.
The possible values for this property are instances of java.lang.String
.public static final TLcdDataProperty RID_PROPERTY
rid
attribute.
The possible values for this property are instances of java.lang.String
.public static final TLcdDataProperty START_DATE_PROPERTY
startDate
attribute.
The possible values for this property are instances of javax.xml.datatype.XMLGregorianCalendar
.public static final TLcdDataProperty VERSION_PROPERTY
version
attribute.
The possible values for this property are instances of
java.lang.String
: one of "FIRST", "LAST", "PREVIOUS", "NEXT", "ALL"long
javax.xml.datatype.XMLGregorianCalendar
public TLcdOGCResourceId()
TLcdOGCResourceId(String)
instead. If not, be sure to use setRid(String)
to initialize your instance properly.public TLcdOGCResourceId(String aID)
aID
- The ID.public XMLGregorianCalendar getEndDate()
endDate
attribute.END_DATE_PROPERTY
property.public void setEndDate(XMLGregorianCalendar aValue)
endDate
attribute.aValue
- the value to set for the END_DATE_PROPERTY
property.public String getPreviousRid()
previousRid
attribute.PREVIOUS_RID_PROPERTY
property.public void setPreviousRid(String aValue)
previousRid
attribute.aValue
- the value to set for the PREVIOUS_RID_PROPERTY
property.public String getRid()
rid
attribute.RID_PROPERTY
property.public void setRid(String aValue)
rid
attribute.aValue
- the value to set for the RID_PROPERTY
property.public XMLGregorianCalendar getStartDate()
startDate
attribute.START_DATE_PROPERTY
property.public void setStartDate(XMLGregorianCalendar aValue)
startDate
attribute.aValue
- the value to set for the START_DATE_PROPERTY
property.public Object getVersion()
version
attribute.
The possible values for this property are instances of
java.lang.String
: one of "FIRST", "LAST", "PREVIOUS", "NEXT", "ALL"long
javax.xml.datatype.XMLGregorianCalendar
VERSION_PROPERTY
property.public void setVersion(Object aValue)
version
attribute.
The possible values for this property are instances of
java.lang.String
: one of "FIRST", "LAST", "PREVIOUS", "NEXT", "ALL".long
javax.xml.datatype.XMLGregorianCalendar
aValue
- the value to set for the VERSION_PROPERTY
property.