public class PropertyIsBetween extends Filter
The abstract class of <PropertyIsBetween> elements.
PropertyIsBetween is a binary comparison operation confining that the value of an expression is within a range.
A PropertyIsBetween element consists of a child <expression> element and a range bounded by <LowerBoundary> and <UpperBoundary>.
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>. The <LowerBoundary> element and the <UpperBoundary> element both consist of a <expression> element, representing the lower and upper boundary value, respectively.
name, subExpression
Constructor and Description |
---|
PropertyIsBetween()
The default constructor.
|
PropertyIsBetween(Filter exp1, Filter exp2, Filter exp3)
Constructs an object of
PropertyIsBetween according to the referred expression and the upper and lower boundaries. |
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractFilterVisitor visitor) |
Filter |
getExpression()
Gets the expression used to judge, i.e., the first child Filter element.
|
FilterType |
getFilterType()
Gets the Filter element type.
|
Filter |
getLowerBoundary()
Gets the lower boundary, i.e., the content of the element.
|
Filter |
getUpperBoundary()
Gets the lower boundary, i.e., the content of the element.
|
copy, getName, getSubExpression, getSubExpressionCount, setSubExpression
public PropertyIsBetween()
The default constructor.
public PropertyIsBetween(Filter exp1, Filter exp2, Filter exp3)
Constructs an object of PropertyIsBetween
according to the referred expression and the upper and lower boundaries.
exp1
- The expression used to judge, i.e., the element.exp2
- The upper boundary.exp3
- The lower boundary.public void accept(AbstractFilterVisitor visitor) throws OGCException
accept
in class Filter
OGCException
public FilterType getFilterType()
Filter
Gets the Filter element type.
getFilterType
in class Filter
public Filter getExpression()
Gets the expression used to judge, i.e., the first child Filter element.
public Filter getLowerBoundary()
Gets the lower boundary, i.e., the content of the element.
public Filter getUpperBoundary()
Gets the lower boundary, i.e., the content of the element.