|
|||||||||
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.Document
public class Document
The result document.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
Document()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object pObject)
|
java.lang.String |
getAddress()
Returns the document's address |
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.lang.String |
getContentId()
gets content id for the document |
java.lang.String |
getContextInfo()
Returns View context information |
java.lang.String |
getDocset()
Returns the physical document set of this document |
java.lang.String |
getEscapedUrl()
Returns a URL with double-escaped backslashes if backslashes are present |
java.lang.String |
getFileName()
Returns the document's file name |
int |
getGoto()
Returns the Jump-to offset of this result in the document text |
int |
getGotoLink()
This is the same function as #getGoto - it's provided for backward compatibility |
int |
getHdoc()
Returns the internal document id |
atg.search.routing.utils.Language |
getLanguage()
Returns the language of document |
java.lang.String |
getPaAnswerText()
Returns the answer text if this document is a preferred answer |
java.lang.String |
getPaQuestionText()
Returns the question text if this document is a preferred answer |
java.util.Map |
getProperties()
Returns a String-to-String or String-to-List Map depending on the enclosing response's SearchResponse.isAllowListProperties() |
java.util.List<RelatedDocset> |
getRelatedDocsets()
Returns the List of related docsets |
java.lang.String |
getRequestTag()
Gets the xml element tag used in the request |
long |
getSizeBytes()
Returns the size of source of document in bytes |
java.lang.String |
getSummary()
Returns the summary of the document |
long |
getTimestamp()
Returns the modified date of document's file |
java.lang.String |
getTitle()
Returns the title of the document |
atg.search.routing.command.search.DocumentFormat |
getType()
Returns the major format of document |
java.lang.String |
getUrl()
See getEscapedUrl() |
int |
hashCode()
|
boolean |
isListPropertiesAllowed()
If this is true, getProperties() returns a map of Strings to Lists. |
void |
setAddress(java.lang.String pAddress)
Sets the document's address |
void |
setContentId(java.lang.String contentId)
sets content id for the document. |
void |
setContextInfo(java.lang.String contextInfo)
Sets View context information |
void |
setDocset(java.lang.String docset)
Sets the physical document set of this document |
void |
setFileName(java.lang.String pFileName)
Sets the document's file name |
void |
setGoto(int pGoto)
Sets the Jump-to offset of this result in the document text |
void |
setHdoc(int hdoc)
Sets the internal document id |
void |
setLanguage(atg.search.routing.utils.Language language)
Sets the language of document |
void |
setListPropertiesAllowed(boolean listPropertiesAllowed)
If this is true, getProperties() returns a map of Strings to Lists. |
void |
setPaAnswerText(java.lang.String paAnswerText)
Sets the answer text if this document is a preferred answer |
void |
setPaQuestionText(java.lang.String paQuestionText)
Sets the question text if this document is a preferred answer |
void |
setProperties(java.util.Map properties)
Sets the properties |
void |
setRelatedDocsets(java.util.List<RelatedDocset> relatedDocsets)
Sets the list of related docsets |
void |
setSizeBytes(long sizeBytes)
Sets the size of source of document |
void |
setSummary(java.lang.String summary)
Sets the summary of the document |
void |
setTimestamp(long timestamp)
Sets the modified date of document's file |
void |
setTitle(java.lang.String title)
Sets the title of the document |
void |
setType(atg.search.routing.command.search.DocumentFormat type)
Sets the major format of document |
void |
setUrl(java.lang.String pUrl)
Sets the url |
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, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public Document()
Method Detail |
---|
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isListPropertiesAllowed()
getProperties()
returns a map of Strings to Lists.
If false, Strings to Strings.
public void setListPropertiesAllowed(boolean listPropertiesAllowed)
getProperties()
returns a map of Strings to Lists.
If false, Strings to Strings.
listPropertiesAllowed
- whether list properties should be allowedpublic java.lang.String getContentId()
public void setContentId(java.lang.String contentId)
contentId
- content id for the documentpublic java.lang.String getContextInfo()
public void setContextInfo(java.lang.String contextInfo)
contextInfo
- View context informationpublic int getHdoc()
public void setHdoc(int hdoc)
hdoc
- document idpublic int getGotoLink()
public int getGoto()
public void setGoto(int pGoto)
pGoto
- Jump-to offset of this result in the document textpublic long getSizeBytes()
public void setSizeBytes(long sizeBytes)
sizeBytes
- Size of source of documentpublic java.lang.String getDocset()
public void setDocset(java.lang.String docset)
docset
- Physical document set of this documentpublic atg.search.routing.command.search.DocumentFormat getType()
public void setType(atg.search.routing.command.search.DocumentFormat type)
type
- Major format of documentpublic atg.search.routing.utils.Language getLanguage()
public void setLanguage(atg.search.routing.utils.Language language)
language
- Language of documentpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- Title of the documentpublic java.lang.String getSummary()
public void setSummary(java.lang.String summary)
summary
- Summary of the documentpublic java.lang.String getUrl()
getEscapedUrl()
public java.lang.String getEscapedUrl()
public void setUrl(java.lang.String pUrl)
pURL
- URL of the documentpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- Modified date of document filepublic java.lang.String getPaQuestionText()
public void setPaQuestionText(java.lang.String paQuestionText)
paQuestionText
- Question text if this document is a preferred answerpublic java.lang.String getPaAnswerText()
public void setPaAnswerText(java.lang.String paAnswerText)
paAnswerText
- Answer text if this document is a preferred answerpublic java.util.Map getProperties()
SearchResponse.isAllowListProperties()
SearchResponse.isAllowListProperties()
public void setProperties(java.util.Map properties)
properties
- String to String map or String to List mappublic java.util.List<RelatedDocset> getRelatedDocsets()
public void setRelatedDocsets(java.util.List<RelatedDocset> relatedDocsets)
relatedDocsets
- List of RelatedDocset objectspublic void setFileName(java.lang.String pFileName)
pFileName
- public java.lang.String getFileName()
public java.lang.String getAddress()
public void setAddress(java.lang.String pAddress)
pAddress
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |