DLESE Tools
v1.6.0

org.dlese.dpc.ndr.reader
Class NdrResponseReader

java.lang.Object
  extended by org.dlese.dpc.ndr.reader.NdrResponseReader

public class NdrResponseReader
extends Object

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
protected  Document doc
          NOT YET DOCUMENTED
protected  List handleList
          NOT YET DOCUMENTED
protected  InfoXML infoXML
          NOT YET DOCUMENTED
 
Constructor Summary
NdrResponseReader(InfoXML infoXML)
          Constructor for the NdrResponseReader object
 
Method Summary
 List getHandleList()
          Gets the handle attribute of the NdrResponseReader object
protected  Node getNode(String xpath)
          Gets a single Node satisfying give XPath.
protected  List getNodes(String xpath)
          Get all Nodes satisfying the given xpath.
protected  String getNodeText(String xpath)
          return the Text of a Node satisfying the given XPath.
static void main(String[] args)
          The main program for the NdrResponseReader class
protected static void pp(Node node)
          Prints a dom4j.Node as formatted string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

infoXML

protected InfoXML infoXML
NOT YET DOCUMENTED


doc

protected Document doc
NOT YET DOCUMENTED


handleList

protected List handleList
NOT YET DOCUMENTED

Constructor Detail

NdrResponseReader

public NdrResponseReader(InfoXML infoXML)
                  throws Exception
Constructor for the NdrResponseReader object

Parameters:
infoXML - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

getHandleList

public List getHandleList()
                   throws Exception
Gets the handle attribute of the NdrResponseReader object

Returns:
The handle value
Throws:
Exception - NOT YET DOCUMENTED

main

public static void main(String[] args)
The main program for the NdrResponseReader class

Parameters:
args - The command line arguments

getNodes

protected List getNodes(String xpath)
Get all Nodes satisfying the given xpath.

Parameters:
xpath - an XPath
Returns:
a List of all modes satisfying given XPath, or null

getNode

protected Node getNode(String xpath)
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

protected String getNodeText(String xpath)
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(Node node)
Prints a dom4j.Node as formatted string.

Parameters:
node - NOT YET DOCUMENTED

DLESE Tools
v1.6.0