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

public class FilterEncoding extends AbstractFilter
This class implements the Filter Encoding Language. It is used to create querys in this language Name: OpenGISĀ® Filter Encoding Implementation Specification Version: 1.1.0 Project Document: OGC 04-095
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Field Details

  • Constructor Details

    • FilterEncoding

      public FilterEncoding(ISQLExpressionFormat formatter, String namesPacePrefix, String wildCard, String singleChar, String escape, Hashtable filterAttributes)
      Create a new Filter Encoding Parser
      Parameters:
      singleChar - This character must be replaced by one character (typically "?")
      escape - Escape character
      nameSpacePrefix - Filter namespace. (typically "ogc")
      wildCardChar - This character must be replaced by any set of characters (typically "*")
      filterAttribute - Sometimes, "Field" label needs an attribute.
    • FilterEncoding

      public FilterEncoding(ISQLExpressionFormat formatter)
      Create a new Filter Encoding Parser
      Parameters:
      formatter -
    • FilterEncoding

      public FilterEncoding(WFSStatus status)
      Create a new Filter Encoding Parser
  • Method Details

    • toString

      public String toString(BinaryTree tree, String version)
      Description copied from class: AbstractFilter
      It returns the Query like a String
      Specified by:
      toString in class AbstractFilter
    • setTag

      public String setTag(String tagName, Hashtable attributes, String value)
      Envolves a value with an XML tag
      Parameters:
      tagName - XML tag name
      attributes - XML tag attributes
      value - Tag value
      Returns:
      String XML tag with its value
    • getLogicalOperator

      public String getLogicalOperator(int operator)
      Description copied from class: AbstractFilter
      returns the String that represents the logic operator in this query language
      Specified by:
      getLogicalOperator in class AbstractFilter
      Parameters:
      operator - Logic operator
      Returns:
    • getRelationalOperator

      public String getRelationalOperator(int operator)
      Description copied from class: AbstractFilter
      returns the String that represents the relational operator in this query language
      Specified by:
      getRelationalOperator in class AbstractFilter
      Parameters:
      operator - Logic operator
      Returns:
    • getGeometricOperator

      public String getGeometricOperator(int operator)
      Description copied from class: AbstractFilter
      returns the String that represents the geometric operator in this query language
      Specified by:
      getGeometricOperator in class AbstractFilter
      Parameters:
      operator - Logic operator
      Returns:
    • getSeparator

      public String getSeparator(int separator)
      Description copied from class: AbstractFilter
      returns the String that represents the separator operator in this query language
      Specified by:
      getSeparator in class AbstractFilter
      Parameters:
      separator - LSeparator "(" or ")"
      Returns:
    • setQualified

      public void setQualified(boolean isQualified)
      Parameters:
      isQualified - the isQualified to set
    • setNamepacePrefix

      public void setNamepacePrefix(String namepacePrefix)
      Parameters:
      namepacePrefix - the namepacePrefix to set
    • setHasBlankSpaces

      public void setHasBlankSpaces(boolean hasBlankSpaces)
      Parameters:
      hasBlankSpaces - the hasBlankSpaces to set