Class FilterValidator

java.lang.Object
nz.org.riskscape.engine.gt.FilterValidator

public class FilterValidator extends Object

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

    Fields
    Modifier and Type
    Field
    Description
    static final FilterValidator
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a Type and determine whether there are any definite or possible problems with it and infer the return type as best as possible
    List<nz.org.riskscape.problem.Problem>
    validateFilter(nz.org.riskscape.engine.types.Struct struct, org.geotools.api.filter.Filter filter)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 a Type and determine whether there are any definite or possible problems with it and infer the return type as best as possible