public class BasicEncodingRules extends AbstractGeneralLanguage
http://www.loc.gov/z3950/agency/
ALL_WORDS, and, AND, ANY_WORDS, currentClause, currentQuery, EXACT_WORDS, or, OR
Constructor and Description |
---|
BasicEncodingRules() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
addClauses(String use,
String structure,
String relation,
String line,
String concordancia,
String operator)
It adds a new clause to the query
|
protected void |
addCurrentClauseQuery(String operator)
It adds a new query to the current query.
|
String |
toString(String database)
It returns the complete BER query
|
getOperator, parseValues, parseValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public void addClauses(String use, String structure, String relation, String line, String concordancia, String operator)
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'public void addClauses(String use, String structure, String relation, Iterator values, String concordancia, String operator)
use
- structure
- relation
- values
- concordancia
- operator
- protected void addCurrentClauseQuery(String operator)
operator
- 'and' or 'or'. Relation between fields