public class TLcdOGCBinaryOperator extends TLcdDataObject implements ILcdOGCExpression
<ogc:BinaryOperatorType>
.
Namely:
<ogc:Add>
<ogc:Mul>
<ogc:Sub>
<ogc:Div>
TLcdOGCBinaryOperator
instance is composed of an arithmetic operation type that must be one of the
constants defined in this class, and two operands that can be any instances of ILcdOGCExpression
.
Note that the OGC Filter 2.0 standard no longer includes the binary operators.
You will get an IllegalArgumentException
when you use this operator in OGC Filter 2.0 XML (for example WFS 2.0).ILcdOGCExpression
Modifier and Type | Field and Description |
---|---|
static int |
ADD
Arithmetic operation type that corresponds to the
<ogc:Add> element. |
static int |
DIVIDE
Arithmetic operation type that corresponds to the
<ogc:Div> element. |
static int |
MULTIPLY
Arithmetic operation type that corresponds to the
<ogc:Mul> element. |
static int |
SUBSTRACT
Arithmetic operation type that corresponds to the
<ogc:Sub> element. |
Constructor and Description |
---|
TLcdOGCBinaryOperator()
Default constructor.
|
TLcdOGCBinaryOperator(int aType)
Creates an instance with a given arithmetic operation type.
|
TLcdOGCBinaryOperator(int aType,
ILcdOGCExpression aFirstExpression,
ILcdOGCExpression aSecondExpression)
Creates an instance with a given arithmetic operation type and its 2 operands.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ILcdOGCExpression |
getFirstExpression()
Gets the first operand of the arithmetic operation.
|
ILcdOGCExpression |
getSecondExpression()
Gets the second operand of the arithmetic operation.
|
int |
getType()
Gets the arithmetic operation type.
|
int |
hashCode() |
void |
setFirstExpression(ILcdOGCExpression aFirstExpression)
Sets the first operand of the arithmetic operation.
|
void |
setSecondExpression(ILcdOGCExpression aSecondExpression)
Sets the second operand of the arithmetic operation.
|
void |
setType(int aType)
Sets the arithmetic operation type.
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final int ADD
<ogc:Add>
element.public static final int SUBSTRACT
<ogc:Sub>
element.public static final int MULTIPLY
<ogc:Mul>
element.public static final int DIVIDE
<ogc:Div>
element.public TLcdOGCBinaryOperator()
public TLcdOGCBinaryOperator(int aType)
aType
- arithmetic operation type of the instance. The type must be one of the constants defined in this
class.public TLcdOGCBinaryOperator(int aType, ILcdOGCExpression aFirstExpression, ILcdOGCExpression aSecondExpression)
aType
- arithmetic operation type of the instance. The type must be one of the constants defined
in this class.aFirstExpression
- the first operand.aSecondExpression
- the second operand.public ILcdOGCExpression getFirstExpression()
public void setFirstExpression(ILcdOGCExpression aFirstExpression)
aFirstExpression
- the first operand of the arithmetic operation.public ILcdOGCExpression getSecondExpression()
public void setSecondExpression(ILcdOGCExpression aSecondExpression)
aSecondExpression
- the second operand of the arithmetic operation.public int getType()
public void setType(int aType)
aType
- the arithmetic operation type. The type must be one of the constants defined in this class.public String toString()
toString
in class TLcdDataObject