org.openorb.board.shared.util

Class XMLTools

public class XMLTools extends 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(InputStream input)
Constructor which initializes the root node from the XML file input stream
Method Summary
Node[]getElements(String elementName)
This method returns the nodes (if several) represented by the element name.
String[]getStringValue(String elementName)
This methods returns the property values ( if several ) in a string format

Constructor Detail

XMLTools

public XMLTools(InputStream input)
Constructor which initializes the root node from the XML file input stream

Parameters: input the XML file inputStream

Method Detail

getElements

public Node[] getElements(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 String[] getStringValue(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