public class PropertyIsNull extends Filter
The abstract class of <PropertyIsNull> elements.
Sets the condition that certain property of result elements is empty, i.e., without any content. Note that 0 is a legal value and not a null value.
A PropertyIsNull element consists of the name of the property field (a<PropertyName> child element).
name, subExpression
Constructor and Description |
---|
PropertyIsNull()
The constructor.
|
PropertyIsNull(Literal literal)
Constructs a
PropertyIsNull object by using a value (a element). |
PropertyIsNull(PropertyName propertyName)
Constructs a
PropertyIsNull object by using the name of the property field. |
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractFilterVisitor visitor) |
FilterType |
getFilterType()
Gets the Filter element type.
|
Literal |
getLiteral()
Gets the value, i.e., the Literal element.
|
PropertyName |
getPropertyName()
Gets the name of the property field.
|
copy, getName, getSubExpression, getSubExpressionCount, setSubExpression
public PropertyIsNull(Literal literal) throws OGCException
Constructs a PropertyIsNull
object by using a value (a element).
literal
- The value (a element).OGCException
- An OGC service exception.public PropertyIsNull(PropertyName propertyName) throws OGCException
Constructs a PropertyIsNull
object by using the name of the property field.
Represents the condition that this property field is null.
propertyName
- The name of the property field (a <PropertyName> element).OGCException
- An OGC service exception.public PropertyIsNull()
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 Literal getLiteral()
Gets the value, i.e., the Literal element.
This method may return null.
public PropertyName getPropertyName()
Gets the name of the property field.
This method may return null.