public class ValidationQueryDelegate extends SimpleFilterDelegate<Boolean>
SimpleFilterDelegate.ComparisonPropertyOperation, SimpleFilterDelegate.FunctionOperation, SimpleFilterDelegate.LogicalPropertyOperation, SimpleFilterDelegate.SpatialPropertyOperation, SimpleFilterDelegate.TemporalPropertyOperation, SimpleFilterDelegate.XPathPropertyOperation
ESCAPE_CHAR, SINGLE_CHAR, WILDCARD_CHAR
Constructor and Description |
---|
ValidationQueryDelegate() |
Modifier and Type | Method and Description |
---|---|
Boolean |
and(List<Boolean> operands)
Logical "and" operation on a list of operands.
|
<S> Boolean |
defaultOperation(Object property,
S literal,
Class<S> literalClass,
Enum operation)
These three Boolean operations AND, OR, and NOT are not boolean operations in the traditional
sense They should return true if any of the operands are true.
|
Boolean |
not(Boolean operand)
Logical "not" operation on an operand.
|
Boolean |
or(List<Boolean> operands)
Logical "or" operation on a list of operands.
|
Boolean |
propertyIsEqualTo(String functionName,
List<Object> arguments,
Object literal)
Compares the function return value is equal to the value of a literal.
|
Boolean |
propertyIsEqualTo(String propertyName,
String literal,
boolean isCaseSensitive)
|
Boolean |
propertyIsLike(String propertyName,
String pattern,
boolean isCaseSensitive)
Compares the value associated with a property to a regular expression pattern.
|
Boolean |
propertyIsNull(String propertyName)
Compares the value associated with a property is equal to
null . |
after, before, begins, beyond, comparisonOperation, contains, crosses, disjoint, during, dwithin, exclude, include, intersects, logicalOperation, nearestNeighbor, overlaps, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsBetween, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsEqualTo, propertyIsFuzzy, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThan, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsGreaterThanOrEqualTo, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThan, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsLessThanOrEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, propertyIsNotEqualTo, relative, spatialOperation, temporalOperation, touches, within, xpathExists, xpathIsFuzzy, xpathIsLike, xpathOperation
public <S> Boolean defaultOperation(Object property, S literal, Class<S> literalClass, Enum operation)
and(java.util.List<java.lang.Boolean>)
to return true, so we need an or operation
underneath if we get a filter that is like [ validation-warnings is test ] OR [ AnyText is * ]
we want or(java.util.List<java.lang.Boolean>)
to return true, so we need an or operation
underneath if we get a filter this is like NOT [ validation-warnings is test ] we want not(java.lang.Boolean)
to return true, so we need to pass the operand as isdefaultOperation
in class SimpleFilterDelegate<Boolean>
public Boolean and(List<Boolean> operands)
FilterDelegate
and
in class SimpleFilterDelegate<Boolean>
operands
- list of operands to "and"public Boolean or(List<Boolean> operands)
FilterDelegate
or
in class SimpleFilterDelegate<Boolean>
operands
- list of T to "or"public Boolean not(Boolean operand)
FilterDelegate
not
in class SimpleFilterDelegate<Boolean>
operand
- operand to negatepublic Boolean propertyIsEqualTo(String propertyName, String literal, boolean isCaseSensitive)
FilterDelegate
propertyIsEqualTo
in class SimpleFilterDelegate<Boolean>
propertyName
- name of property to compareliteral
- value to compareisCaseSensitive
- case-sensitivity booleanpropertyName
and literal
FilterDelegate.propertyIsEqualTo(String, Object)
public Boolean propertyIsNull(String propertyName)
FilterDelegate
null
.
propertyName == null
propertyIsNull
in class SimpleFilterDelegate<Boolean>
propertyName
- name of property to comparepublic Boolean propertyIsLike(String propertyName, String pattern, boolean isCaseSensitive)
FilterDelegate
Regular expression special characters are defined as WILDCARD_CHAR
, SINGLE_CHAR
, and ESCAPE_CHAR
.
propertyIsLike
in class SimpleFilterDelegate<Boolean>
propertyName
- name of property to comparepattern
- regular expression pattern to matchisCaseSensitive
- case-sensitivity booleanpublic Boolean propertyIsEqualTo(String functionName, List<Object> arguments, Object literal)
FilterDelegate
function result == literal
propertyIsEqualTo
in class SimpleFilterDelegate<Boolean>
functionName
- name of functionarguments
- list of arguments to pass to the functionliteral
- value to comparefunctionName
result and literal
This work is licensed under a Creative Commons Attribution 4.0 International License.