Package com.luciad.ogc.filter.model
Class TLcdOGCBinaryComparisonOperator
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCBinaryComparisonOperator
- All Implemented Interfaces:
ILcdDataObject
,ILcdGenericExpression
,ILcdOGCCondition
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
This class represents the elements of type
<ogc:BinaryComparisonOpType>
.
Namely:
<ogc:PropertyIsEqualTo>
<ogc:PropertyIsNotEqualTo>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyIsGreaterOrEqualThan>
<ogc:PropertyIsLessThan>
<ogc:PropertyIsLessOrEqualThan>
TLcdOGCBinaryComparisonOperator
instance is composed of a type that must be one of the constants defined in
this class, and two operands that can be any instances of ILcdOGCExpression
. It also admits a matchCase
property relevant in case of comparison between strings.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Comparison type that corresponds to the<ogc:PropertyIsEqualTo>
element.static final int
Comparison type that corresponds to the<ogc:PropertyIsGreaterThan>
element.static final int
Comparison type that corresponds to the<ogc:PropertyIsGreaterOrEqualThan>
element.static final int
Comparison type that corresponds to the<ogc:PropertyIsLessThan>
element.static final int
Comparison type that corresponds to the<ogc:PropertyIsLessOrEqualThan>
element.static final int
Comparison type that corresponds to the<ogc:PropertyIsNotEqualTo>
element. -
Constructor Summary
ConstructorDescriptionDefault constructor.TLcdOGCBinaryComparisonOperator
(int aType) Creates an instance with a given comparison type.TLcdOGCBinaryComparisonOperator
(int aType, ILcdOGCExpression aFirstExpression, ILcdOGCExpression aSecondExpression) Creates an instance with a given comparison type and two given operands. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the first operand of the comparison.Gets the second operand of the comparison.int
getType()
Gets the comparison type.int
hashCode()
boolean
Indicates whether the case must be matched in case of a comparison between strings.void
setFirstExpression
(ILcdOGCExpression aFirstExpression) Sets the first operand of the comparison.void
setMatchCase
(boolean aMatchCase) Indicates whether the case must be matched in case of a comparison between strings.void
setSecondExpression
(ILcdOGCExpression aSecondExpression) Sets the second operand of the comparison.void
setType
(int aType) Sets the comparison type.toString()
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
EQUAL
public static final int EQUALComparison type that corresponds to the<ogc:PropertyIsEqualTo>
element.- See Also:
-
NOT_EQUAL
public static final int NOT_EQUALComparison type that corresponds to the<ogc:PropertyIsNotEqualTo>
element.- See Also:
-
GREATER
public static final int GREATERComparison type that corresponds to the<ogc:PropertyIsGreaterThan>
element.- See Also:
-
LESS
public static final int LESSComparison type that corresponds to the<ogc:PropertyIsLessThan>
element.- See Also:
-
GREATER_OR_EQUAL
public static final int GREATER_OR_EQUALComparison type that corresponds to the<ogc:PropertyIsGreaterOrEqualThan>
element.- See Also:
-
LESS_OR_EQUAL
public static final int LESS_OR_EQUALComparison type that corresponds to the<ogc:PropertyIsLessOrEqualThan>
element.- See Also:
-
-
Constructor Details
-
TLcdOGCBinaryComparisonOperator
public TLcdOGCBinaryComparisonOperator()Default constructor. -
TLcdOGCBinaryComparisonOperator
public TLcdOGCBinaryComparisonOperator(int aType) Creates an instance with a given comparison type.- Parameters:
aType
- the given comparison type.
-
TLcdOGCBinaryComparisonOperator
public TLcdOGCBinaryComparisonOperator(int aType, ILcdOGCExpression aFirstExpression, ILcdOGCExpression aSecondExpression) Creates an instance with a given comparison type and two given operands.- Parameters:
aType
- the given comparison type.aFirstExpression
- the first operand.aSecondExpression
- the second operand.
-
-
Method Details
-
getType
public int getType()Gets the comparison type.- Returns:
- the comparison type.
-
setType
public void setType(int aType) Sets the comparison type.- Parameters:
aType
- the comparison type.
-
getFirstExpression
Gets the first operand of the comparison.- Returns:
- the first operand of the comparison.
-
setFirstExpression
Sets the first operand of the comparison.- Parameters:
aFirstExpression
- the first operand of the comparison.
-
getSecondExpression
Gets the second operand of the comparison.- Returns:
- the second operand of the comparison.
-
setSecondExpression
Sets the second operand of the comparison.- Parameters:
aSecondExpression
- the second operand of the comparison.
-
isMatchCase
public boolean isMatchCase()Indicates whether the case must be matched in case of a comparison between strings. The default value is true.- Returns:
- true if the case must be matched; false otherwise.
-
setMatchCase
public void setMatchCase(boolean aMatchCase) Indicates whether the case must be matched in case of a comparison between strings. The default value is true.- Parameters:
aMatchCase
- true if the case must be matched; false otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classTLcdDataObject
-