public class Or extends Filter implements BinaryLogicOpFilter
The abstract class of <Or> element.
Or is a logical operator representing logical operation Or. It can be used to combine various Filter elements such as spatial operators, numerical operators, and logical operators, creating more complicated compound expressions.
An Or element consists of two or more child Filter elements.
name, subExpression| Constructor and Description |
|---|
Or()
The constructor.
|
Or(Filter exp1, Filter exp2)
Constructs an object of
Or according to two child Filter elements. |
Or(java.util.List<Filter> operands)
Constructs an object of
Or according to a list of child Filter elements. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AbstractFilterVisitor visitor) |
Filter |
copy()
Copies a replication, i.e., generating a new Filter object identical to this object.
|
FilterType |
getFilterType()
Gets the Filter element type.
|
java.util.List<Filter> |
getOperands()
Gets the list of child Filter elements.
|
getName, getSubExpression, getSubExpressionCount, setSubExpressionpublic Or()
The constructor.
public Or(Filter exp1, Filter exp2)
Constructs an object of Or according to two child Filter elements.
exp1 - The first child Filter element.exp2 - The second child Filter element.public Or(java.util.List<Filter> operands) throws OGCException
Constructs an object of Or according to a list of child Filter elements.
operands - An list of child Filter elements.OGCException - An OGC service exception.public void accept(AbstractFilterVisitor visitor) throws OGCException
accept in class FilterOGCExceptionpublic java.util.List<Filter> getOperands()
Gets the list of child Filter elements.
public Filter copy()
FilterCopies a replication, i.e., generating a new Filter object identical to this object.
The specific implementation of this method depends on the subclass. "null" may be returned.
public FilterType getFilterType()
FilterGets the Filter element type.
getFilterType in class Filter