Package org.gvsig.catalog.languages
Class BasicEncodingRules
java.lang.Object
org.gvsig.catalog.languages.AbstractGeneralLanguage
org.gvsig.catalog.languages.BasicEncodingRules
- All Implemented Interfaces:
ILanguages
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)
-
Field Summary
Fields inherited from class org.gvsig.catalog.languages.AbstractGeneralLanguage
ALL_WORDS, and, AND, ANY_WORDS, currentClause, currentQuery, EXACT_WORDS, or, OR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClauses(String use, String structure, String relation, String line, String concordancia, String operator) It adds a new clause to the queryvoidaddClauses(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.protected voidaddCurrentClauseQuery(String operator) It adds a new query to the current query.It returns the complete BER queryMethods inherited from class org.gvsig.catalog.languages.AbstractGeneralLanguage
getOperator, parseValues, parseValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.catalog.languages.ILanguages
toString
-
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 valueconcordancia- Relationship between different words of the same field (more than one words) E,A o Y --> Exact, All, anYoperator- 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
It adds a new query to the current query.- Parameters:
operator- 'and' or 'or'. Relation between fields
-
toString
It returns the complete BER query- Returns:
-