Package nz.org.riskscape.engine.gt
Class FilterValidator
java.lang.Object
nz.org.riskscape.engine.gt.FilterValidator
Validates a Filter
or an Expression
against a Struct
to check for potential problems when
it is evaluated against a Tuple
of that type.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Type>
validateExpression
(nz.org.riskscape.engine.types.Type type, org.geotools.api.filter.expression.Expression expression) Check the givenExpression
against aType
and determine whether there are any definite or possible problems with it and infer the return type as best as possibleList<nz.org.riskscape.problem.Problem>
validateFilter
(nz.org.riskscape.engine.types.Struct struct, org.geotools.api.filter.Filter filter)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FilterValidator
public FilterValidator()
-
-
Method Details
-
validateFilter
public List<nz.org.riskscape.problem.Problem> validateFilter(nz.org.riskscape.engine.types.Struct struct, org.geotools.api.filter.Filter filter) -
validateExpression
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.types.Type> validateExpression(nz.org.riskscape.engine.types.Type type, org.geotools.api.filter.expression.Expression expression) Check the given
Expression
against aType
and determine whether there are any definite or possible problems with it and infer the return type as best as possible
-