Class AbstractFilter

java.lang.Object
org.gvsig.remoteclient.wfs.filters.AbstractFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
FilterEncoding

public abstract class AbstractFilter extends Object implements Filter
All classes that implement a "Query Language" must to inherit of this class
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Constructor Details

  • Method Details

    • toString

      public abstract String toString(BinaryTree tree, String version)
      It returns the Query like a String
    • getLogicalOperator

      public abstract String getLogicalOperator(int operator)
      returns the String that represents the logic operator in this query language
      Parameters:
      operator - Logic operator
      Returns:
    • getRelationalOperator

      public abstract String getRelationalOperator(int operator)
      returns the String that represents the relational operator in this query language
      Parameters:
      operator - Logic operator
      Returns:
    • getGeometricOperator

      public abstract String getGeometricOperator(int operator)
      returns the String that represents the geometric operator in this query language
      Parameters:
      operator - Logic operator
      Returns:
    • getSeparator

      public abstract String getSeparator(int separator)
      returns the String that represents the separator operator in this query language
      Parameters:
      separator - LSeparator "(" or ")"
      Returns:
    • addFeatureById

      public void addFeatureById(Object id)
      Adds a feature id
      Parameters:
      id - The feature id
    • getIds

      protected ArrayList getIds()
      Returns:
      the ids
    • setQueryByAttribute

      public void setQueryByAttribute(String query)
    • addAndClause

      public void addAndClause(String propertyName, String propertyValue)
      It adds a new property and value using the AND operation
      Parameters:
      propertyName -
      propertyValue -
    • getSpatialFiltersCount

      public int getSpatialFiltersCount()
    • getSpatialFilterAt

      public WFSSpatialFilterOperation getSpatialFilterAt(int index)
    • clearSpatialFilters

      public void clearSpatialFilters()
    • addSpatialFilter

      public void addSpatialFilter(WFSSpatialFilterOperation spatialOperation)
    • addSpatialFilter

      public void addSpatialFilter(org.gvsig.fmap.geom.Geometry geometry, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation)
    • addSpatialFilter

      public void addSpatialFilter(String version, org.gvsig.fmap.geom.primitive.Envelope envelope, String attributeName, String nameSpacePrefix, String nameSpaceLocation, String srs, int operation)
    • addClause

      public void addClause(String value)
    • toString

      public String toString(String version)
    • getOperator

      public String getOperator(int operator)
      Return true if the token is a operator
      Parameters:
      operator -
      Returns:
    • getRelationalOperator

      public int getRelationalOperator(String operator)
    • getLogicalOperator

      public int getLogicalOperator(String operator)
    • parseValues

      public Iterator parseValues(String line, int option)
      Divide a line in a set of words
      Parameters:
      line - Line to divide
      option - If the option is EXACT it returns the same line
      Returns:
      Iteraror A set of words