org.openorb.board.shared.util
Class XMLUtils

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

public class XMLUtils
extends java.lang.Object

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

Author:
Marina DANIEL, Olivier Modica

Constructor Summary
XMLUtils()
           
 
Method Summary
static org.w3c.dom.Node[] getElements(org.w3c.dom.Node rootNode, java.lang.String elementName)
          This method returns the nodes (if several) represented by the element name.
static java.lang.String[] getStringValue(org.w3c.dom.Node rootNode, 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

XMLUtils

public XMLUtils()
Method Detail

getElements

public static org.w3c.dom.Node[] getElements(org.w3c.dom.Node rootNode,
                                             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 static java.lang.String[] getStringValue(org.w3c.dom.Node rootNode,
                                                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