Package com.luciad.ogc.filter.model
Class TLcdOGCBinaryTemporalOperator
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCBinaryTemporalOperator
- All Implemented Interfaces:
ILcdDataObject
,ILcdGenericExpression
,ILcdOGCCondition
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Filter 2.0 condition for temporal filtering.
You can use TLcdOGCFilterFactory.temporal(com.luciad.ogc.filter.model.TLcdOGCPropertyName, java.util.Date, javax.xml.namespace.QName)
to easily create a temporal condition.
Note: serializing this operator to 1.1 OGC Filter XML (for example to SLD or WFS 1.x) will fail.
For a detailed description of the temporal operators see ISO 19108:2002, 5.2.3.5.
This operator supports the following time representations:
TLcdGML32TimePosition
Date
String
, only if formatted according the ISO 8601 specification (seeTLcdISO8601DateFormat
)Calendar
Instant
LocalDate
LocalDateTime
XMLGregorianCalendar
TLcdGML32TimePeriod
or TLcdGML32TimePosition
, according to specification.
When an unsupported type is used, the evaluation of this operator will always return false
.
- Since:
- 2017.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QName
The time associated with the property lies fully after the time associated with the expression.static final QName
Any interaction between the property and expression time.static final QName
The time associated with the property lies fully before the time associated with the expression.static final QName
The begin time of the property is equal to the begin time of the expression and the end time of the property is in the expression time period.static final QName
The begin time the property is equal to the begin time of the expression.static final QName
The property time must be between the begin and end time of the expression time period.static final QName
The end time of the property is equal to the end time of the expression and the begin time of the property is before the expression begin time.static final QName
The begin time of the property is after the begin time of the expression and the end times are equal.static final QName
The end time of the property is equal to the expression begin time.static final QName
The begin time of the property is equal to the end time of the expression.static final QName
The begin time of the property is in the expression time period and the end time of the property is after the end time of the expression.static final QName
The expression time is fully contained in the property time period.static final QName
The property and expression time are equal.static final QName
The begin time of the property is before the begin time of the expression and the end time of the property is in the expression time period. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty operator.TLcdOGCBinaryTemporalOperator
(TLcdOGCPropertyName aPropertyName, QName aType, Object aExpression) Creates a new operator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the expression to be considered in the temporal relationship.Gets the property name that identifies the time property to be considered in the temporal relationship.getType()
Returns the value of the property that holds the type of this instance.int
hashCode()
void
setExpression
(Object aExpression) Sets the expression to be considered in the temporal relationship.void
setPropertyName
(TLcdOGCPropertyName aPropertyName) Sets the property name that identifies the time property to be considered in the temporal relationship.void
Sets the value of the property that holds the type of this instance.toString()
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
ENDED_BY
The end time of the property is equal to the end time of the expression and the begin time of the property is before the expression begin time. The property must be a time period. -
BEFORE
The time associated with the property lies fully before the time associated with the expression. -
AFTER
The time associated with the property lies fully after the time associated with the expression. -
BEGUN_BY
The begin time the property is equal to the begin time of the expression. The expression must be a time period. -
OVERLAPPED_BY
The begin time of the property is in the expression time period and the end time of the property is after the end time of the expression. The property and expression must both be a time period to use this operator. -
T_EQUALS
The property and expression time are equal. -
ANY_INTERACTS
Any interaction between the property and expression time. -
MEETS
The end time of the property is equal to the expression begin time. Both the property and expression must be a time period. -
MET_BY
The begin time of the property is equal to the end time of the expression. Both the property and expression must be a time period. -
ENDS
The begin time of the property is after the begin time of the expression and the end times are equal. Both the property and expression must be a time period. -
T_OVERLAPS
The begin time of the property is before the begin time of the expression and the end time of the property is in the expression time period. Both the property and expression must be a time period. -
T_CONTAINS
The expression time is fully contained in the property time period. The property must be a time period. -
BEGINS
The begin time of the property is equal to the begin time of the expression and the end time of the property is in the expression time period. The expression must be a time period. -
DURING
The property time must be between the begin and end time of the expression time period. The expression must be a time period.
-
-
Constructor Details
-
TLcdOGCBinaryTemporalOperator
public TLcdOGCBinaryTemporalOperator()Creates a new, empty operator. Please use theself-contained constructor
instead. If you do use this constructor, you must configure this operator usingsetPropertyName(com.luciad.ogc.filter.model.TLcdOGCPropertyName)
,setType(javax.xml.namespace.QName)
andsetExpression(java.lang.Object)
. -
TLcdOGCBinaryTemporalOperator
public TLcdOGCBinaryTemporalOperator(TLcdOGCPropertyName aPropertyName, QName aType, Object aExpression) Creates a new operator.- Parameters:
aPropertyName
- The property to compareaType
- The type of comparison, see for exampleAFTER
aExpression
- The value to compare with, seeclass javadoc
for possible types.
-
-
Method Details
-
getPropertyName
Gets the property name that identifies the time property to be considered in the temporal relationship.- Returns:
- the property name that identifies the time property to be considered in the temporal relationship.
-
setPropertyName
Sets the property name that identifies the time property to be considered in the temporal relationship.- Parameters:
aPropertyName
- the property name that identifies the time property to be considered in the temporal relationship.
-
getExpression
Gets the expression to be considered in the temporal relationship. For the possible types of this expression, seeclass javadoc
/- Returns:
- the expression to consider in the temporal relationship
-
setExpression
Sets the expression to be considered in the temporal relationship. For the possible types of this expression, seeclass javadoc
/- Parameters:
aExpression
- expression to be considered in the temporal relationship
-
getType
Returns the value of the property that holds the type of this instance.The possible values for this property are the public
QName
constants defined in this class.- Returns:
- the type of comparison.
-
setType
Sets the value of the property that holds the type of this instance.The possible values for this property are the public
QName
constants defined in this class.- Parameters:
aValue
- the value to set.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classTLcdDataObject
-