|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.QueryTerm
public class QueryTerm
Represents a query term.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
QueryTerm()
|
Method Summary | |
---|---|
void |
addStem(atg.search.routing.command.search.Stem stem)
Sets the index term stem |
boolean |
equals(java.lang.Object pObject)
|
int |
getAdjacency()
Indicates whether the term has adjacency constraints to the previous term |
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.lang.String |
getBroken()
Returns what the term's broken attribute is: no, first, middle, last. |
Case |
getCase()
Indicates how the term is case constrained |
java.lang.String |
getContext()
Returns what dictionary adaptors were used for expansions |
java.lang.String |
getCorrection()
Deprecated. see getCorrections() |
java.util.List<java.lang.String> |
getCorrections()
Returns the list of corrections |
Expansions |
getExpansions()
Returns the List of Expansions of this query term |
java.lang.String |
getExptype()
Indicates what type (POS) of expansion was used |
int |
getFreq()
Returns the term frequency |
int |
getIdx()
Returns the index of term |
java.lang.String |
getMorphEndings()
Returns the morphological endings and prefixes removed from the index term |
java.lang.String |
getNorm()
Returns the normalized form of term |
TermOp |
getOp()
Returns the simple boolean operator of term |
java.lang.String |
getPostag()
Returns what surface POS was assigned to this term |
java.lang.String |
getQuote()
Returns the quote |
java.lang.String |
getRequestTag()
|
SpellingType |
getSpelling()
Indicates whether the term was spell corrected, either with the internal or wintertree checkers |
java.util.List<atg.search.routing.command.search.Stem> |
getStems()
Returns the List of Stems--index terms of the query term |
java.lang.String |
getText()
Returns the text of term |
int |
getWeight()
Returns the term weight |
boolean |
isDisconnected()
Indicates whether the term is connected to the prior term |
boolean |
isExpand()
Indicates whether the term is expandable |
boolean |
isMorph()
Indicates whether the term is morphologically constrained |
boolean |
isOrdered()
Indicates whether the term is order constrained to the previous term |
boolean |
isPhraseExpand()
Indicates whether the term is phrase expandable only |
boolean |
isWildcard()
Indicates whether the term was a wildcard |
void |
setAdjacency(int adjacency)
Sets whether the term has adjacency constraints to the previous term |
void |
setBroken(java.lang.String broken)
Sets what the term's broken attribute is: no, first, middle, last. |
void |
setCase(Case pCase)
Sets how the term is case constrained |
void |
setContext(java.lang.String context)
Sets what dictionary adaptors were used for expansions |
void |
setCorrections(java.util.List<java.lang.String> pCorrections)
Sets the spell-corrected terms |
void |
setDisconnected(boolean pDisconnected)
Sets whether the term is connected to the prior term |
void |
setExpand(boolean expand)
Sets whether the term is expandable |
void |
setExpansions(Expansions expansions)
Sets the List of Expansions of this query term |
void |
setExptype(java.lang.String exptype)
Sets what type (POS) of expansion was used |
void |
setFreq(int freq)
Sets the term frequency |
void |
setIdx(int idx)
Sets the index of term |
void |
setMorph(boolean morph)
Sets whether the term is morphologically constrained |
void |
setMorphEndings(java.lang.String morphEndings)
Sets the morphological endings and prefixes removed from the index term |
void |
setNorm(java.lang.String pNorm)
Sets the normalized form of term |
void |
setOp(TermOp op)
Sets the simple boolean operator of term |
void |
setOrdered(boolean ordered)
Sets whether the term is order constrained to the previous term |
void |
setPhraseExpand(boolean phraseExpand)
Sets whether the term is phrase expandable only |
void |
setPostag(java.lang.String postag)
Sets what surface POS was assigned to this term |
void |
setQuote(java.lang.String pQuote)
Sets the quote |
void |
setSpelling(SpellingType spelling)
Sets whether the term was spell corrected, either with the internal or wintertree checkers |
void |
setStems(java.util.List<atg.search.routing.command.search.Stem> stems)
Sets the List of Stems--index terms of the query term |
void |
setText(java.lang.String text)
Sets the text of term |
void |
setWeight(int weight)
Sets the term weight |
void |
setWildcard(boolean pWildcard)
Sets whether the term was a wildcard |
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public QueryTerm()
Method Detail |
---|
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int getIdx()
public void setIdx(int idx)
idx
- Index of termpublic TermOp getOp()
public void setOp(TermOp op)
op
- Simple boolean operator of termpublic int getWeight()
public void setWeight(int weight)
weight
- term weightpublic boolean isDisconnected()
public void setDisconnected(boolean pDisconnected)
pDisconnected
- whether the term is connected to the prior termpublic int getFreq()
public void setFreq(int freq)
freq
- term frequencypublic boolean isExpand()
public void setExpand(boolean expand)
expand
- Whether the term is expandablepublic boolean isPhraseExpand()
public void setPhraseExpand(boolean phraseExpand)
phraseExpand
- Whether the term is phrase expandable onlypublic boolean isWildcard()
public void setWildcard(boolean pWildcard)
pWildcard
- whether the term was a wildcardpublic boolean isMorph()
public void setMorph(boolean morph)
morph
- Whether the term is morphologically constrainedpublic boolean isOrdered()
public void setOrdered(boolean ordered)
ordered
- Whether the term is order constrained to the previous termpublic int getAdjacency()
public void setAdjacency(int adjacency)
adjacency
- Whether the term has adjacency constraints to the previous termpublic java.lang.String getBroken()
public void setBroken(java.lang.String broken)
broken
- Sets the terms' broken attributepublic java.lang.String getExptype()
public void setExptype(java.lang.String exptype)
exptype
- What type (POS) of expansion was usedpublic java.lang.String getContext()
public void setContext(java.lang.String context)
context
- What dictionary adaptors were used for expansionspublic java.lang.String getPostag()
public void setPostag(java.lang.String postag)
postag
- What surface POS was assigned to this termpublic java.lang.String getMorphEndings()
public void setMorphEndings(java.lang.String morphEndings)
morphEndings
- The morphological endings and prefixes removed from the index termpublic SpellingType getSpelling()
public void setSpelling(SpellingType spelling)
spelling
- Whether the term was spell corrected, either with the internal or wintertree checkerspublic java.lang.String getText()
public void setText(java.lang.String text)
text
- text of termpublic java.lang.String getCorrection()
getCorrections()
public void setCorrections(java.util.List<java.lang.String> pCorrections)
pCorrections
- spell-corrected termpublic java.util.List<java.lang.String> getCorrections()
public java.lang.String getNorm()
public void setNorm(java.lang.String pNorm)
pNorm
- normalized form of termpublic java.util.List<atg.search.routing.command.search.Stem> getStems()
public void setStems(java.util.List<atg.search.routing.command.search.Stem> stems)
stems
- List of Stems--index terms of the query termpublic void addStem(atg.search.routing.command.search.Stem stem)
stem
- index term stempublic Expansions getExpansions()
public void setExpansions(Expansions expansions)
expansions
- List of Expansions of this query termpublic void setCase(Case pCase)
pCase
- how the term is case constrainedpublic Case getCase()
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
public void setQuote(java.lang.String pQuote)
pQuote
- the quotepublic java.lang.String getQuote()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |