Class BasicEncodingRules

java.lang.Object
org.gvsig.catalog.languages.AbstractGeneralLanguage
org.gvsig.catalog.languages.BasicEncodingRules
All Implemented Interfaces:
ILanguages

public class BasicEncodingRules extends AbstractGeneralLanguage
This class is used to create a Basic Encoding Rules (BER) query. See the specification for more information.
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Constructor Details

    • BasicEncodingRules

      public BasicEncodingRules()
  • Method Details

    • addClauses

      public void addClauses(String use, String structure, String relation, String line, String concordancia, String operator)
      It adds a new clause to the query
      Parameters:
      use - It is a number that represent an attribute (4=Title,62=abstract,...)
      structure - It defines the attribute type (1=Phrase,2=wors,...)
      relation - Relation between the attribute and the query (1=LessThan,3=equal,...)
      line - String with the user introduced value
      concordancia - Relationship between different words of the same field (more than one words) E,A o Y --> Exact, All, anY
      operator - Relationship between fields (title, abstract) 'and' or 'or'
    • addClauses

      public void addClauses(String use, String structure, String relation, Iterator values, String concordancia, String operator)
      It realize the same function than the "addClauses(String use, String structure String relation,String line, String concordancia)" function, but the words to find are in a vector.
      Parameters:
      use -
      structure -
      relation -
      values -
      concordancia -
      operator -
    • addCurrentClauseQuery

      protected void addCurrentClauseQuery(String operator)
      It adds a new query to the current query.
      Parameters:
      operator - 'and' or 'or'. Relation between fields
    • toString

      public String toString(String database)
      It returns the complete BER query
      Returns: