public class And extends Filter implements BinaryLogicOpFilter
The abstract class of <And> elements.
And is a logical operator representing logical operation And. It can be used to combine various Filter elements such as spatial operators, numerical operators, and logical operators, creating more complicated compound expressions.
An And element consists of two or more child Filter elements on which the And operation is performed.
name, subExpression| Constructor and Description |
|---|
And()
The default constructor.
|
And(Filter exp1, Filter exp2)
Constructs an object of
And by using the child Filter elements participating in the logical operation. |
And(java.util.List<Filter> operands)
Constructs an object of
And by using a list of child Filter elements used in the logical operation. |
| 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 all the child Filter elements.
|
getName, getSubExpression, getSubExpressionCount, setSubExpressionpublic And(Filter exp1, Filter exp2)
Constructs an object of And by using the child Filter elements participating in the logical operation.
exp1 - Child Filter element 1, representing variable 1.exp2 - Child Filter element 2, representing variable 2.public And(java.util.List<Filter> operands) throws OGCException
Constructs an object of And by using a list of child Filter elements used in the logical operation.
operands - A list of child Filter elements, i.e., all variables in the And operation. The size of the list must be greater than or equal to 2.OGCException - An OGC service exception.public And()
The default constructor.
public void accept(AbstractFilterVisitor visitor) throws OGCException
accept in class FilterOGCExceptionpublic FilterType getFilterType()
FilterGets the Filter element type.
getFilterType in class Filterpublic java.util.List<Filter> getOperands()
Gets all the child Filter elements.