Class FilterFactory

java.lang.Object
org.geotools.filter.FilterFactoryImpl
nz.org.riskscape.engine.filter.FilterFactory
All Implemented Interfaces:
org.geotools.api.filter.FilterFactory, org.geotools.util.factory.Factory

public class FilterFactory extends org.geotools.filter.FilterFactoryImpl
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

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

    Constructors
    Constructor
    Description
     
    FilterFactory(Function<String,Optional<nz.org.riskscape.engine.function.IdentifiedFunction>> riskscapeFunctionFinder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geotools.api.filter.expression.Function
    function(String name, org.geotools.api.filter.expression.Expression... args)
     
    static boolean
    isStatic(org.geotools.api.filter.expression.Expression expression)
    Indicates if the expression is static.
    org.geotools.api.filter.expression.Literal
    literal(double d)
     
    org.geotools.api.filter.expression.Literal
    literal(float f)
     
    org.geotools.api.filter.expression.Literal
    literal(int i)
     
    org.geotools.api.filter.expression.Literal
    literal(long l)
     
    org.geotools.api.filter.expression.Literal
     
    org.geotools.api.filter.expression.PropertyName
    path(String... parts)
     
    org.geotools.api.filter.expression.PropertyName
     
    org.geotools.api.filter.expression.PropertyName
    property(org.geotools.api.feature.type.Name name)
     

    Methods inherited from class org.geotools.filter.FilterFactoryImpl

    add, after, after, and, and, anyInteracts, anyInteracts, arithmeticOperators, bbox, bbox, bbox, bbox, bbox, bbox, bbox, bbox, bbox, bbox, bbox, bbox, before, before, begins, begins, begunBy, begunBy, between, between, beyond, beyond, beyond, beyond, beyond, capabilities, capabilities, comparisonOperators, contains, contains, contains, contains, crosses, crosses, crosses, crosses, disjoint, disjoint, disjoint, disjoint, divide, during, during, dwithin, dwithin, dwithin, dwithin, endedBy, endedBy, ends, ends, equal, equal, equal, equal, equals, equals, equals, featureId, featureId, function, function, function, function, functionName, functionName, functionName, functionName, functionName, functionName, functions, getImplementationHints, gmlObjectId, greater, greater, greater, greaterOrEqual, greaterOrEqual, greaterOrEqual, id, id, idCapabilities, intersects, intersects, intersects, intersects, isNil, isNull, less, less, less, lessOrEqual, lessOrEqual, lessOrEqual, like, like, like, like, literal, literal, literal, literal, meets, meets, metBy, metBy, multiply, nativeFilter, not, notEqual, notEqual, notEqual, operator, or, or, overlappedBy, overlappedBy, overlaps, overlaps, overlaps, overlaps, parameter, property, resourceId, resourceId, scalarCapabilities, sort, spatialCapabilities, spatialOperator, spatialOperators, subtract, tcontains, tcontains, temporalCapabilities, temporalOperator, tequals, tequals, touches, touches, touches, touches, toverlaps, toverlaps, within, within, within, within, within

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • FilterFactory

      public FilterFactory()
    • FilterFactory

      public FilterFactory(Function<String,Optional<nz.org.riskscape.engine.function.IdentifiedFunction>> riskscapeFunctionFinder)
      Parameters:
      riskscapeFunctionFinder - function that will return an Optional of IdentifiedFunction with matching id.
  • Method Details

    • property

      public org.geotools.api.filter.expression.PropertyName property(org.geotools.api.feature.type.Name name)
      Specified by:
      property in interface org.geotools.api.filter.FilterFactory
      Overrides:
      property in class org.geotools.filter.FilterFactoryImpl
    • path

      public org.geotools.api.filter.expression.PropertyName path(String... parts)
    • property

      public org.geotools.api.filter.expression.PropertyName property(String name)
      Specified by:
      property in interface org.geotools.api.filter.FilterFactory
      Overrides:
      property in class org.geotools.filter.FilterFactoryImpl
    • literal

      public org.geotools.api.filter.expression.Literal literal(double d)
      Specified by:
      literal in interface org.geotools.api.filter.FilterFactory
      Overrides:
      literal in class org.geotools.filter.FilterFactoryImpl
    • literal

      public org.geotools.api.filter.expression.Literal literal(float f)
      Specified by:
      literal in interface org.geotools.api.filter.FilterFactory
      Overrides:
      literal in class org.geotools.filter.FilterFactoryImpl
    • literal

      public org.geotools.api.filter.expression.Literal literal(long l)
      Specified by:
      literal in interface org.geotools.api.filter.FilterFactory
      Overrides:
      literal in class org.geotools.filter.FilterFactoryImpl
    • literal

      public org.geotools.api.filter.expression.Literal literal(int i)
      Specified by:
      literal in interface org.geotools.api.filter.FilterFactory
      Overrides:
      literal in class org.geotools.filter.FilterFactoryImpl
    • literal

      public org.geotools.api.filter.expression.Literal literal(Object obj)
      Specified by:
      literal in interface org.geotools.api.filter.FilterFactory
      Overrides:
      literal in class org.geotools.filter.FilterFactoryImpl
    • function

      public org.geotools.api.filter.expression.Function function(String name, org.geotools.api.filter.expression.Expression... args)
      Specified by:
      function in interface org.geotools.api.filter.FilterFactory
      Overrides:
      function in class org.geotools.filter.FilterFactoryImpl
    • isStatic

      public static boolean isStatic(org.geotools.api.filter.expression.Expression expression)

      Indicates if the expression is static. That is it will return the same result any time it is evaluated.

      Parameters:
      expression - to test
      Returns:
      true if the expression is static