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(java.lang.String use,
java.lang.String structure,
java.lang.String relation,
java.util.Iterator values,
java.lang.String concordancia,
java.lang.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(java.lang.String use,
java.lang.String structure,
java.lang.String relation,
java.lang.String line,
java.lang.String concordancia,
java.lang.String operator)
It adds a new clause to the query
|
protected void |
addCurrentClauseQuery(java.lang.String operator)
It adds a new query to the current query.
|
java.lang.String |
toString(java.lang.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(java.lang.String use, java.lang.String structure, java.lang.String relation, java.lang.String line, java.lang.String concordancia, java.lang.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(java.lang.String use, java.lang.String structure, java.lang.String relation, java.util.Iterator values, java.lang.String concordancia, java.lang.String operator)
use
- structure
- relation
- values
- concordancia
- operator
- protected void addCurrentClauseQuery(java.lang.String operator)
operator
- 'and' or 'or'. Relation between fieldspublic java.lang.String toString(java.lang.String database)