com.sun.labs.minion.query
Class Term
java.lang.Object
com.sun.labs.minion.query.Element
com.sun.labs.minion.query.Term
public class Term
- extends Element
A class for a search term. Various modifiers can be applied to a term to
affect how the term should be treated during the search.
|
Nested Class Summary |
static class |
Term.Modifier
The modifiers that affect which terms will be pulled from the index
for the given query term. |
|
Constructor Summary |
Term(java.lang.String term)
|
Term(java.lang.String term,
java.util.EnumSet<Term.Modifier> mods)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Term
public Term(java.lang.String term)
Term
public Term(java.lang.String term,
java.util.EnumSet<Term.Modifier> mods)
addModifier
public void addModifier(Term.Modifier modifier)
getTerm
public java.lang.String getTerm()
getModifiers
public java.util.EnumSet<Term.Modifier> getModifiers()
getQueryElement
public QueryElement getQueryElement()
- Description copied from class:
Element
- Transduces this query element into a "real" query element, one that can
be evaluated by the search engine.
- Specified by:
getQueryElement in class Element
- Returns:
- an evaluatable query element.