public final class TLcdOGCBinaryTemporalOperator extends TLcdDataObject implements ILcdOGCCondition
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 (see TLcdISO8601DateFormat
)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
.
Modifier and Type | Field and Description |
---|---|
static QName |
AFTER
The time associated with the property lies fully after the time associated with the expression.
|
static QName |
ANY_INTERACTS
Any interaction between the property and expression time.
|
static QName |
BEFORE
The time associated with the property lies fully before the time associated with the expression.
|
static QName |
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.
|
static QName |
BEGUN_BY
The begin time the property is equal to the begin time of the expression.
|
static QName |
DURING
The property time must be between the begin and end time of the expression time period.
|
static QName |
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.
|
static QName |
ENDS
The begin time of the property is after the begin time of the expression and the end times are equal.
|
static QName |
MEETS
The end time of the property is equal to the expression begin time.
|
static QName |
MET_BY
The begin time of the property is equal to the end time of the expression.
|
static QName |
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.
|
static QName |
T_CONTAINS
The expression time is fully contained in the property time period.
|
static QName |
T_EQUALS
The property and expression time are equal.
|
static QName |
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.
|
Constructor and Description |
---|
TLcdOGCBinaryTemporalOperator()
Creates a new, empty operator.
|
TLcdOGCBinaryTemporalOperator(TLcdOGCPropertyName aPropertyName,
QName aType,
Object aExpression)
Creates a new operator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getExpression()
Gets the expression to be considered in the temporal relationship.
|
ILcdOGCExpression |
getPropertyName()
Gets the property name that identifies the time property to be considered in the temporal relationship.
|
QName |
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 |
setType(QName aValue)
Sets the value of the property that holds the type of this instance.
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final QName ENDED_BY
public static final QName BEFORE
public static final QName AFTER
public static final QName BEGUN_BY
public static final QName OVERLAPPED_BY
public static final QName T_EQUALS
public static final QName ANY_INTERACTS
public static final QName MEETS
public static final QName MET_BY
public static final QName ENDS
public static final QName T_OVERLAPS
public static final QName T_CONTAINS
public static final QName BEGINS
public static final QName DURING
public TLcdOGCBinaryTemporalOperator()
self-contained constructor
instead.
If you do use this constructor, you must configure this operator using setPropertyName(com.luciad.ogc.filter.model.TLcdOGCPropertyName)
, setType(javax.xml.namespace.QName)
and setExpression(java.lang.Object)
.
public TLcdOGCBinaryTemporalOperator(TLcdOGCPropertyName aPropertyName, QName aType, Object aExpression)
aPropertyName
- The property to compareaType
- The type of comparison, see for example AFTER
aExpression
- The value to compare with, see class javadoc
for possible types.public ILcdOGCExpression getPropertyName()
public void setPropertyName(TLcdOGCPropertyName aPropertyName)
aPropertyName
- the property name that identifies the time property to be considered in the temporal
relationship.public Object getExpression()
class javadoc
/public void setExpression(Object aExpression)
class javadoc
/aExpression
- expression to be considered in the temporal relationshippublic QName getType()
The possible values for this property are the public QName
constants defined in this class.
public void setType(QName aValue)
The possible values for this property are the public QName
constants defined in this class.
aValue
- the value to set.public String toString()
toString
in class TLcdDataObject