public class TLcdOGCBinaryComparisonOperator extends TLcdDataObject implements ILcdOGCCondition
<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.ILcdOGCExpression
Modifier and Type | Field and Description |
---|---|
static int |
EQUAL
Comparison type that corresponds to the
<ogc:PropertyIsEqualTo> element. |
static int |
GREATER
Comparison type that corresponds to the
<ogc:PropertyIsGreaterThan> element. |
static int |
GREATER_OR_EQUAL
Comparison type that corresponds to the
<ogc:PropertyIsGreaterOrEqualThan> element. |
static int |
LESS
Comparison type that corresponds to the
<ogc:PropertyIsLessThan> element. |
static int |
LESS_OR_EQUAL
Comparison type that corresponds to the
<ogc:PropertyIsLessOrEqualThan> element. |
static int |
NOT_EQUAL
Comparison type that corresponds to the
<ogc:PropertyIsNotEqualTo> element. |
Constructor and Description |
---|
TLcdOGCBinaryComparisonOperator()
Default 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ILcdOGCExpression |
getFirstExpression()
Gets the first operand of the comparison.
|
ILcdOGCExpression |
getSecondExpression()
Gets the second operand of the comparison.
|
int |
getType()
Gets the comparison type.
|
int |
hashCode() |
boolean |
isMatchCase()
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.
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final int EQUAL
<ogc:PropertyIsEqualTo>
element.public static final int NOT_EQUAL
<ogc:PropertyIsNotEqualTo>
element.public static final int GREATER
<ogc:PropertyIsGreaterThan>
element.public static final int LESS
<ogc:PropertyIsLessThan>
element.public static final int GREATER_OR_EQUAL
<ogc:PropertyIsGreaterOrEqualThan>
element.public static final int LESS_OR_EQUAL
<ogc:PropertyIsLessOrEqualThan>
element.public TLcdOGCBinaryComparisonOperator()
public TLcdOGCBinaryComparisonOperator(int aType)
aType
- the given comparison type.public TLcdOGCBinaryComparisonOperator(int aType, ILcdOGCExpression aFirstExpression, ILcdOGCExpression aSecondExpression)
aType
- the given comparison type.aFirstExpression
- the first operand.aSecondExpression
- the second operand.public int getType()
public void setType(int aType)
aType
- the comparison type.public ILcdOGCExpression getFirstExpression()
public void setFirstExpression(ILcdOGCExpression aFirstExpression)
aFirstExpression
- the first operand of the comparison.public ILcdOGCExpression getSecondExpression()
public void setSecondExpression(ILcdOGCExpression aSecondExpression)
aSecondExpression
- the second operand of the comparison.public boolean isMatchCase()
public void setMatchCase(boolean aMatchCase)
aMatchCase
- true if the case must be matched; false otherwise.public String toString()
toString
in class TLcdDataObject