public class PropertyIsEqualTo extends AbstractBinaryExpression
The abstract class of <PropertyIsEqualTo> elements.
It's a binary comparison operation confining that the values of two expressions are the same.
A PropertyIsEqualTo element consists of two <expression> child elements.
Where, the <expression> element is a composite expression of Filter elements. It is an abstract element in OGC and does not actually exist. It represents an expression with a combination of some Filter elements. The Filter elements that can be combined in a <expression> element include: <Add>, <Sub>, <Mul>, <Div>, <PropertyName>, <Literal> , and <Function>.
name, subExpression| Constructor and Description |
|---|
PropertyIsEqualTo()
The constructor.
|
PropertyIsEqualTo(Filter firstFilter, Filter secondFilter)
Constructs an object of
PropertyIsEqualTo by using two composite expressions. |
PropertyIsEqualTo(PropertyName property, Literal value)
Constructs an object of
PropertyIsEqualTo by using the name object and the value object of the property field. |
PropertyIsEqualTo(java.lang.String[] argument)
Constructs a
PropertyIsEqualTo object by using the name and the value of the property field. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AbstractFilterVisitor visitor) |
FilterType |
getFilterType()
Gets the Filter element type.
|
getExpression1, getExpression2copy, getName, getSubExpression, getSubExpressionCount, setSubExpressionpublic PropertyIsEqualTo()
The constructor.
public PropertyIsEqualTo(java.lang.String[] argument)
Constructs a PropertyIsEqualTo object by using the name and the value of the property field.
argument - An array of strings. The first array element represents the name of the property field, used to construct a PropertyName object. The second element represents the value, used to construct a Literal object.public PropertyIsEqualTo(PropertyName property, Literal value)
Constructs an object of PropertyIsEqualTo by using the name object and the value object of the property field.
property - A <PropertyName> element, representing the name of the property field.value - A <Literal> element, representing the value.public PropertyIsEqualTo(Filter firstFilter, Filter secondFilter)
Constructs an object of PropertyIsEqualTo by using two composite expressions.
firstFilter - The first composite expression.secondFilter - The second composite expression.public void accept(AbstractFilterVisitor visitor) throws OGCException
accept in class AbstractBinaryExpressionOGCExceptionpublic FilterType getFilterType()
AbstractBinaryExpressionGets the Filter element type.
getFilterType in class AbstractBinaryExpression