public class AbstractBinaryExpression extends Filter
The abstract of the simple binary and binary comparison operation elements.
The BinaryOperatorType includes Add, Sub, Mul, Div. The BinaryComparisonOpType is used to compare propery, including: PropertyIsEqualTo, PropertyIsGreaterThan, PropertyIsGreaterThanOrEqualTo, PropertyIsLessThan, PropertyIsLessThanOrEqualTo, PropertyIsNotEqualTo.
An element of this type needs two child Filter elements to operate on.
name, subExpression
Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryExpression(Filter expression1, Filter expression2, java.lang.String name)
Constructs an object of
AbstractBinaryExpression according to the Filter element and the name of this Filter element. |
|
AbstractBinaryExpression(java.lang.String name, int subCount)
Constructs an object of
AbstractBinaryExpression according to the Filter element name and its child Filter element number. |
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractFilterVisitor visitor) |
Filter |
getExpression1()
Gets the first child Filter element.
|
Filter |
getExpression2()
Gets the first child Filter element.
|
FilterType |
getFilterType()
Gets the Filter element type.
|
copy, getName, getSubExpression, getSubExpressionCount, setSubExpression
protected AbstractBinaryExpression(Filter expression1, Filter expression2, java.lang.String name)
Constructs an object of AbstractBinaryExpression
according to the Filter element and the name of this Filter element.
expression1
- The first child Filter element.expression2
- The second child Filter element.name
- The name of this Filter element.public AbstractBinaryExpression(java.lang.String name, int subCount)
Constructs an object of AbstractBinaryExpression
according to the Filter element name and its child Filter element number.
name
- The name of this Filter element.subCount
- The number of the child Filter elements.public Filter getExpression1()
Gets the first child Filter element.
public Filter getExpression2()
Gets the first child Filter element.
public FilterType getFilterType()
Gets the Filter element type.
getFilterType
in class Filter
public void accept(AbstractFilterVisitor visitor) throws OGCException
accept
in class Filter
OGCException