Class TLcdOGCResourceId

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCResourceId
All Implemented Interfaces:
ILcdDataObject, ILcdGenericExpression, ILcdOGCCondition, ILcdCloneable, ILcdDeepCloneable, Cloneable

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.

Since:
2017.0
  • Field Details

    • END_DATE_PROPERTY

      public static final TLcdDataProperty END_DATE_PROPERTY
      Data property that maps to the endDate attribute. The possible values for this property are instances of javax.xml.datatype.XMLGregorianCalendar.
    • PREVIOUS_RID_PROPERTY

      public static final TLcdDataProperty PREVIOUS_RID_PROPERTY
      Data property that maps to the previousRid attribute. The possible values for this property are instances of java.lang.String.
    • RID_PROPERTY

      public static final TLcdDataProperty RID_PROPERTY
      Data property that maps to the rid attribute. The possible values for this property are instances of java.lang.String.
    • START_DATE_PROPERTY

      public static final TLcdDataProperty START_DATE_PROPERTY
      Data property that maps to the startDate attribute. The possible values for this property are instances of javax.xml.datatype.XMLGregorianCalendar.
    • VERSION_PROPERTY

      public static final TLcdDataProperty VERSION_PROPERTY
      Data property that maps to the 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
  • Constructor Details

    • TLcdOGCResourceId

      public TLcdOGCResourceId()
      Create a new, empty resource ID.

      Prefer the self-contained TLcdOGCResourceId(String) instead. If not, be sure to use setRid(String) to initialize your instance properly.

    • TLcdOGCResourceId

      public TLcdOGCResourceId(String aID)
      Create a new resource ID for the given ID.
      Parameters:
      aID - The ID.
  • Method Details

    • getEndDate

      public XMLGregorianCalendar getEndDate()
      Returns the value of the property that maps to the endDate attribute.
      Returns:
      the value of the END_DATE_PROPERTY property.
    • setEndDate

      public void setEndDate(XMLGregorianCalendar aValue)
      Sets the value of the property that maps to the endDate attribute.
      Parameters:
      aValue - the value to set for the END_DATE_PROPERTY property.
    • getPreviousRid

      public String getPreviousRid()
      Returns the value of the property that maps to the previousRid attribute.
      Returns:
      the value of the PREVIOUS_RID_PROPERTY property.
    • setPreviousRid

      public void setPreviousRid(String aValue)
      Sets the value of the property that maps to the previousRid attribute.
      Parameters:
      aValue - the value to set for the PREVIOUS_RID_PROPERTY property.
    • getRid

      public String getRid()
      Returns the value of the property that maps to the rid attribute.
      Returns:
      the value of the RID_PROPERTY property.
    • setRid

      public void setRid(String aValue)
      Sets the value of the property that maps to the rid attribute.
      Parameters:
      aValue - the value to set for the RID_PROPERTY property.
    • getStartDate

      public XMLGregorianCalendar getStartDate()
      Returns the value of the property that maps to the startDate attribute.
      Returns:
      the value of the START_DATE_PROPERTY property.
    • setStartDate

      public void setStartDate(XMLGregorianCalendar aValue)
      Sets the value of the property that maps to the startDate attribute.
      Parameters:
      aValue - the value to set for the START_DATE_PROPERTY property.
    • getVersion

      public Object getVersion()
      Returns the value of the property that maps to the 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
      Returns:
      the value of the VERSION_PROPERTY property.
    • setVersion

      public void setVersion(Object aValue)
      Sets the value of the property that maps to the 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
      Parameters:
      aValue - the value to set for the VERSION_PROPERTY property.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object