org.openorb.board.shared.util
Class XMLTools

java.lang.Object
  |
  +--org.openorb.board.shared.util.XMLTools

public class XMLTools
extends java.lang.Object

OpenORB GUI Utilities / XML Tools This class provides methods for reading / writing a XML document. This ideally would be mapped to Castor

Author:
Marina DANIEL, Olivier Modica

Constructor Summary
XMLTools(java.io.InputStream input)
          Constructor which initializes the root node from the XML file input stream
 
Method Summary
 org.w3c.dom.Node[] getElements(java.lang.String elementName)
          This method returns the nodes (if several) represented by the element name.
 java.lang.String[] getStringValue(java.lang.String elementName)
          This methods returns the property values ( if several ) in a string format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTools

public XMLTools(java.io.InputStream input)
Constructor which initializes the root node from the XML file input stream
Parameters:
input - the XML file inputStream
Method Detail

getElements

public org.w3c.dom.Node[] getElements(java.lang.String elementName)
This method returns the nodes (if several) represented by the element name.
Parameters:
elementName - The element name ( in node0.node1.node2 format ).
Returns:
The required nodes.

getStringValue

public java.lang.String[] getStringValue(java.lang.String elementName)
This methods returns the property values ( if several ) in a string format
Parameters:
elementName - the property name ( in node0.node1.node2:attr format )
Returns:
the property values