public class CategoryDocument extends Document implements Groupable
Document
with a few extra properties unique
to the browse response.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
CategoryDocument() |
Modifier and Type | Method and Description |
---|---|
atg.search.routing.command.search.InternalAnswerGroup |
createNewAnswerGroup()
Returns a new
DocumentAnswerGroup |
boolean |
equals(java.lang.Object pObject) |
int |
getAnswerGroup()
Returns the document's answer group
|
protected void |
getAttributeXML(java.lang.StringBuilder sb) |
Document |
getDocument()
Returns the associated document
|
int |
getOriginalAnswerGroup()
Returns the original answer group identifier, from before the merge.
|
java.lang.String |
getRankCalc()
Returns the rank calculation
|
float |
getScore()
Returns the score based on ranking configuration calculation
|
java.lang.String |
getSortProp()
returns the value of the grouping property
|
int |
hashCode() |
void |
setAnswerGroup(int answerGroup)
Sets the answer group
|
void |
setId(int pId)
Not used for category docs
|
void |
setRankCalc(java.lang.String rankCalc)
Sets the rank calculation
|
void |
setScore(float score)
Sets the score
|
void |
setSortProp(java.lang.String sortProp)
Sets the sort property
|
getAddress, getBodyXML, getContentId, getContextInfo, getDocset, getEscapedUrl, getFileName, getGoto, getGotoLink, getHdoc, getLanguage, getPaAnswerText, getPaQuestionText, getProperties, getRelatedDocsets, getRequestTag, getSizeBytes, getSummary, getTimestamp, getTitle, getType, getUrl, isListPropertiesAllowed, setAddress, setContentId, setContextInfo, setDocset, setFileName, setGoto, setHdoc, setLanguage, setListPropertiesAllowed, setPaAnswerText, setPaQuestionText, setProperties, setRelatedDocsets, setSizeBytes, setSummary, setTimestamp, setTitle, setType, setUrl
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContentId, setContentId
public int getAnswerGroup()
getAnswerGroup
in interface Groupable
public void setAnswerGroup(int answerGroup)
setAnswerGroup
in interface Groupable
answerGroup
- public int getOriginalAnswerGroup()
getOriginalAnswerGroup
in interface Groupable
public Document getDocument()
getDocument
in interface Groupable
public void setId(int pId)
public atg.search.routing.command.search.InternalAnswerGroup createNewAnswerGroup()
DocumentAnswerGroup
createNewAnswerGroup
in interface Groupable
public java.lang.String getSortProp()
getSortProp
in interface Groupable
public void setSortProp(java.lang.String sortProp)
sortProp
- the sort propertypublic java.lang.String getRankCalc()
public void setRankCalc(java.lang.String rankCalc)
rankCalc
- rank calculationpublic float getScore()
public void setScore(float score)
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class Document
atg.search.routing.command.IncompleteCommandException