Package org.dlese.dpc.ndr.reader
Class NdrResponseReader
java.lang.Object
org.dlese.dpc.ndr.reader.NdrResponseReader
Base Class for reading NDR responses to requests that return handle lists,
such as "List" and "Find" requests. To read responses for requests that
return NDRObjects, use NdrObjectReader.
- Author:
- ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNdrResponseReader(InfoXML infoXML) Constructor for the NdrResponseReader object -
Method Summary
Modifier and TypeMethodDescriptionGets the handle attribute of the NdrResponseReader objectprotected org.dom4j.NodeGets a single Node satisfying give XPath.protected ListGet all Nodes satisfying the given xpath.protected StringgetNodeText(String xpath) return the Text of a Node satisfying the given XPath.static voidThe main program for the NdrResponseReader classprotected static voidpp(org.dom4j.Node node) Prints a dom4j.Node as formatted string.
-
Field Details
-
infoXML
NOT YET DOCUMENTED -
doc
protected org.dom4j.Document docNOT YET DOCUMENTED -
handleList
NOT YET DOCUMENTED
-
-
Constructor Details
-
NdrResponseReader
Constructor for the NdrResponseReader object- Parameters:
infoXML- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
getHandleList
Gets the handle attribute of the NdrResponseReader object- Returns:
- The handle value
- Throws:
Exception- NOT YET DOCUMENTED
-
main
The main program for the NdrResponseReader class- Parameters:
args- The command line arguments
-
getNodes
Get all Nodes satisfying the given xpath.- Parameters:
xpath- an XPath- Returns:
- a List of all modes satisfying given XPath, or null
-
getNode
Gets a single Node satisfying give XPath. If more than one Node is found, the first is returned (and a msg is printed).- Parameters:
xpath- an XPath- Returns:
- a dom4j Node
-
getNodeText
return the Text of a Node satisfying the given XPath.- Parameters:
xpath- an XPath\- Returns:
- Text of Node or empty String if no Node is found
-
pp
protected static void pp(org.dom4j.Node node) Prints a dom4j.Node as formatted string.- Parameters:
node- NOT YET DOCUMENTED
-