public class Not extends Filter implements BinaryLogicOpFilter
A <Not> element.
Not is a logical operator representing logical operation Not. It can be used to combine various Filter elements such as spatial operators, numerical operators, and logical operators, creating more complicated compound expressions.
A Not element consists of one child Filter element. A Not operation is performed on the result of this Filter element.
name, subExpression
Constructor and Description |
---|
Not()
The constructor.
|
Not(Filter operand)
Constructs an object of
Not according to two child Filter elements. |
Not(java.util.List<Filter> operands) |
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.
|
Filter |
getOperand()
Gets the target Filter element for logical operation Not, i.e., the child Filter element of the Not element.
|
java.util.List<Filter> |
getOperands()
Gets all the child Filter elements.
|
getName, getSubExpression, getSubExpressionCount, setSubExpression
public Not(Filter operand) throws java.lang.IllegalArgumentException
Constructs an object of Not
according to two child Filter elements.
operand
- The Filter element to be performd Not operation.java.lang.IllegalArgumentException
- An illegal or incorrect parameter exception.public Not(java.util.List<Filter> operands) throws OGCException
OGCException
public Not()
The constructor.
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 java.util.List<Filter> getOperands()
Gets all the child Filter elements.
public Filter copy()
Filter
Copies 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 Filter getOperand()
Gets the target Filter element for logical operation Not, i.e., the child Filter element of the Not element.