|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.greenstone.gs3client.data.ResponseData org.greenstone.gs3client.data.BrowseResponseData
public class BrowseResponseData
Stores the data contained in an XML response message to a request for the classification Browse structure. An object of this class can be reused after instatiation by calling setResponseData() with a new browse response XML message. This will first call clear() to clear/release its references to all the old data.
Field Summary | |
---|---|
protected ClassifierNodeData |
rootClassifierNode
Reference to the root browse classifier, which may contain further descendent classifierNodes or documentNodes. |
Fields inherited from class org.greenstone.gs3client.data.ResponseData |
---|
nodeIDsToNodes |
Constructor Summary | |
---|---|
BrowseResponseData()
Default constructor |
Method Summary | |
---|---|
void |
clear()
Resets the internal data members of this BrowseResponseData object of their values so that this BrowseResponseData can be reused for the next Browse response message. |
java.util.Map |
getIDToNodeMapping()
|
ClassifierNodeData |
getRootClassifier()
|
boolean |
setMetadataForClassifiers(org.w3c.dom.Element messageTag)
Given the response message element to a metadata request on <classifierNode>s;, this method sets those classifierNodes' metadata. |
void |
setResponseData(org.w3c.dom.Element responseMsgTag)
Given an XML responseMessage to a request for the classification Browse structure, this method sets its nodeIDsToNodes member variable by instantiating classifierNodeData and/or documentNodeData objects as given in the responseMessageTag. |
java.lang.String |
show()
Overloaded method to produce a String output of the data contained in this BrowseResponseMessage. |
Methods inherited from class org.greenstone.gs3client.data.ResponseData |
---|
getNodeForID, setContentForDocs, setMetadataForDocuments, setMetadataForNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassifierNodeData rootClassifierNode
Constructor Detail |
---|
public BrowseResponseData()
Method Detail |
---|
public void clear()
clear
in class ResponseData
public void setResponseData(org.w3c.dom.Element responseMsgTag)
setResponseData
in class ResponseData
responseMsgTag
- is the the XML DOM Element representing a browse
response XML message.public boolean setMetadataForClassifiers(org.w3c.dom.Element messageTag)
messageTag
- - the response message Element to a metadata
request on <classifierNode>spublic ClassifierNodeData getRootClassifier()
public java.util.Map getIDToNodeMapping()
getIDToNodeMapping
in class ResponseData
public java.lang.String show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |