|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.greenstone.gs3client.data.NodeData org.greenstone.gs3client.data.ClassifierNodeData
public class ClassifierNodeData
ClassifierNodeData represents the information that can be stored in a <classifierNode> element. A ClassifierNode may have children and further descendents of type NodeData: either of type DocumentNodeData or type ClassifierNodeData.
Field Summary | |
---|---|
(package private) NodeData[] |
childnodes
Children (of this NodeData) as given in a nodeStructure, which can be ClassifierNodeData or DocumentNodeData. |
Fields inherited from class org.greenstone.gs3client.data.NodeData |
---|
hasChildren, nodeID, nodeMetadata, nodeTag |
Constructor Summary | |
---|---|
ClassifierNodeData(org.w3c.dom.Element classifierNodeTag)
Constructor that given a classifierNode element creates a ClassifierNodeData instance to parse and store its data. |
Method Summary | |
---|---|
NodeData[] |
getChildren()
Gets the children of this node, but does not guarantee that *their* children are set. |
void |
setChildren(java.util.Map idsToNodes_map)
Given a map of nodeIdsToNodes, this method instantiates any children this ClassifierNodeData object might have. |
void |
setTitle(java.lang.String name)
This method is mainly useful for setting the top-level/root classifierNode's name. |
java.lang.String |
show()
|
Methods inherited from class org.greenstone.gs3client.data.NodeData |
---|
getMetadataList, getTitle, setChildren, setMetadataList, showMeta, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
NodeData[] childnodes
Constructor Detail |
---|
public ClassifierNodeData(org.w3c.dom.Element classifierNodeTag)
classifierNodeTag
- is the <classifierNode> element in a
Greenstone3 response XML messageMethod Detail |
---|
public void setTitle(java.lang.String name)
name
- is the previous title addedpublic void setChildren(java.util.Map idsToNodes_map)
idsToNodes_map
- is a Hashmap of all the Node IDs to Node
objects being maintained (Classifier- or DocumentNode)public NodeData[] getChildren()
getChildren
in class NodeData
public java.lang.String show()
show
in class NodeData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |