ICY Version 1.0.1.0
Static Public Member Functions

icy.util.XMLUtil Class Reference

List of all members.

Static Public Member Functions

static Document createDocument (boolean createRootNode)
static Document loadDocument (String path)
static Document loadDocument (String path, boolean showError)
static Document loadDocument (File f)
static Document loadDocument (File f, boolean showError)
static Document loadDocument (URL url)
static Document loadDocument (URL url, boolean showError)
static boolean saveDocument (Document doc, String filename)
static boolean saveDocument (Document doc, File f)
static ArrayList< Node > getSubNodes (Node node)
static Node getSubNodeByName (Node node, String name)
static ArrayList< Node > getSubNodesByName (Node node, String name)
static Element getElement (Node node, String name)
static Attr getAttribute (Element element, String attribute)
static String getAttributeValue (Element element, String attribute, String def)
static String getAttributeStringValue (Element element, String attribute, String def)
static String getAttributeStringValue (Element element, String attribute)
static boolean getAttributeBooleanValue (Element element, String attribute)
static int getAttributeIntValue (Element element, String attribute, int def)
static float getAttributeFloatValue (Element element, String attribute, float def)
static double getAttributeDoubleValue (Element element, String attribute, double def)
static String getFirstValue (Element element, String def)
static String getFirstValue (Element element)
static String getAllValues (Element element, String def)
static String getAllValues (Element element)
static String getStringValue (Element element, String def)
static String getStringValue (Element element)
static boolean getBooleanValue (Element element)
static int getIntValue (Element element, int def)
static float getFloatValue (Element element, float def)
static double getDoubleValue (Element element, double def)
static String getElementFirstValue (Node node, String name, String def)
static String getElementFirstValue (Node node, String name)
static String getElementAllValues (Node node, String name, String def)
static String getElementAllValues (Node node, String name)
static String getElementStringValue (Node node, String name, String def)
static String getElementStringValue (Node node, String name)
static boolean getElementBooleanValue (Node node, String name)
static int getElementIntValue (Node node, String name, int def)
static float getElementFloatValue (Node node, String name, float def)
static double getElementDoubleValue (Node node, String name, double def)
static Node addNode (Node parent, Node node)
static Node addValue (Node node, String value)
static Element addElement (Node node, String name)
static Element addElement (Node node, String name, String value)
static Node setNode (Node parent, Node node)
static Element setElement (Node node, String name)
static void setAttributeValue (Element element, String attribute, String value)
static void setAttributeStringValue (Element element, String attribute, String value)
static void setAttributeBooleanValue (Element element, String attribute, boolean value)
static void setAttributeIntValue (Element element, String attribute, int value)
static void setAttributeFloatValue (Element element, String attribute, float value)
static void setAttributeDoubleValue (Element element, String attribute, double value)
static void setElementValue (Node node, String name, String value)
static void setElementStringValue (Node node, String name, String value)
static void setElementBooleanValue (Node node, String name, boolean value)
static void setElementIntValue (Node node, String name, int value)
static void setElementFloatValue (Node node, String name, float value)
static void setElementDoubleValue (Node node, String name, double value)
static boolean removeNode (Node node, String name)
static boolean removeNode (Node parent, Node child)
static void removeAllChilds (Node node)
static void removeChilds (Node node, String name)
static void removeAttribute (Element element, String name)

Member Function Documentation

static Element icy.util.XMLUtil.addElement ( Node  node,
String  name 
) [static]

Add a named element to the specified node

static Element icy.util.XMLUtil.addElement ( Node  node,
String  name,
String  value 
) [static]

Add a named element with a value to the specified node

static Node icy.util.XMLUtil.addNode ( Node  parent,
Node  node 
) [static]

Add the specified node to specified parent node

static Node icy.util.XMLUtil.addValue ( Node  node,
String  value 
) [static]

Add a value to the specified node

static Document icy.util.XMLUtil.createDocument ( boolean  createRootNode) [static]

Create and return an empty XML Document.

static String icy.util.XMLUtil.getAllValues ( Element  element,
String  def 
) [static]

Get all values (value of all child) from the specified Element.
If no value found 'def' value is returned.

static String icy.util.XMLUtil.getAllValues ( Element  element) [static]

Get all values (value of all child) from the specified Element.

static Attr icy.util.XMLUtil.getAttribute ( Element  element,
String  attribute 
) [static]

Get an Attribute from the specified Element

static boolean icy.util.XMLUtil.getAttributeBooleanValue ( Element  element,
String  attribute 
) [static]

Get attribute value as Boolean from the specified Element.

static double icy.util.XMLUtil.getAttributeDoubleValue ( Element  element,
String  attribute,
double  def 
) [static]

Get attribute value as double from the specified Element.
If no attribute found 'def' value is returned.

static float icy.util.XMLUtil.getAttributeFloatValue ( Element  element,
String  attribute,
float  def 
) [static]

Get attribute value as float from the specified Element.
If no attribute found 'def' value is returned.

static int icy.util.XMLUtil.getAttributeIntValue ( Element  element,
String  attribute,
int  def 
) [static]

Get attribute value as integer from the specified Element.
If no attribute found 'def' value is returned.

static String icy.util.XMLUtil.getAttributeStringValue ( Element  element,
String  attribute,
String  def 
) [static]

Get attribute value as String from the specified Element.
If no attribute found 'def' value is returned.

static String icy.util.XMLUtil.getAttributeStringValue ( Element  element,
String  attribute 
) [static]

Get attribute value as String from the specified Element.

static String icy.util.XMLUtil.getAttributeValue ( Element  element,
String  attribute,
String  def 
) [static]

Get attribute value from the specified Element.
If no attribute found 'def' value is returned.

static boolean icy.util.XMLUtil.getBooleanValue ( Element  element) [static]

Get all values (value of all child) as Boolean from the specified Element.

static double icy.util.XMLUtil.getDoubleValue ( Element  element,
double  def 
) [static]

Get value as double from the specified Element.
If no double value found 'def' value is returned.

static Element icy.util.XMLUtil.getElement ( Node  node,
String  name 
) [static]

Get child node with specified name as Element from specified node.

static String icy.util.XMLUtil.getElementAllValues ( Node  node,
String  name,
String  def 
) [static]

Get all element values from the specified node.
If no value found 'def' value is returned.

static String icy.util.XMLUtil.getElementAllValues ( Node  node,
String  name 
) [static]

Get all element values from the specified node.

static boolean icy.util.XMLUtil.getElementBooleanValue ( Node  node,
String  name 
) [static]

Get element value as boolean from the specified node.

static double icy.util.XMLUtil.getElementDoubleValue ( Node  node,
String  name,
double  def 
) [static]

Get element value as double from the specified node.
If no double value found 'def' value is returned.

static String icy.util.XMLUtil.getElementFirstValue ( Node  node,
String  name 
) [static]

Get first element value from the specified node.

static String icy.util.XMLUtil.getElementFirstValue ( Node  node,
String  name,
String  def 
) [static]

Get first element value from the specified node.
If no value found 'def' value is returned.

static float icy.util.XMLUtil.getElementFloatValue ( Node  node,
String  name,
float  def 
) [static]

Get element value as float from the specified node.
If no float value found 'def' value is returned.

static int icy.util.XMLUtil.getElementIntValue ( Node  node,
String  name,
int  def 
) [static]

Get element value as integer from the specified node.
If no integer value found 'def' value is returned.

static String icy.util.XMLUtil.getElementStringValue ( Node  node,
String  name,
String  def 
) [static]

Get element value as string from the specified node.
If no value found 'def' value is returned.

static String icy.util.XMLUtil.getElementStringValue ( Node  node,
String  name 
) [static]

Get element value as string from the specified node.

static String icy.util.XMLUtil.getFirstValue ( Element  element,
String  def 
) [static]

Get first value (value of first child) from the specified Element.
If no value found 'def' value is returned.

static String icy.util.XMLUtil.getFirstValue ( Element  element) [static]

Get first value (value of first child) from the specified Element.

static float icy.util.XMLUtil.getFloatValue ( Element  element,
float  def 
) [static]

Get value as float from the specified Element.
If no float value found 'def' value is returned.

static int icy.util.XMLUtil.getIntValue ( Element  element,
int  def 
) [static]

Get value as integer from the specified Element.
If no integer value found 'def' value is returned.

static String icy.util.XMLUtil.getStringValue ( Element  element,
String  def 
) [static]

Get all values (value of all child) as String from the specified Element.
If no value found 'def' value is returned.

static String icy.util.XMLUtil.getStringValue ( Element  element) [static]

Get all values (value of all child) as String from the specified Element.

static Node icy.util.XMLUtil.getSubNodeByName ( Node  node,
String  name 
) [static]

Get the child node with specified name from node.
Return null if not found.

static ArrayList<Node> icy.util.XMLUtil.getSubNodes ( Node  node) [static]

Get all child node of specified node

static ArrayList<Node> icy.util.XMLUtil.getSubNodesByName ( Node  node,
String  name 
) [static]

Get all child nodes with specified name from node.

static Document icy.util.XMLUtil.loadDocument ( File  f) [static]

Load XML Document from specified file.
Return null if no document can be loaded.

static Document icy.util.XMLUtil.loadDocument ( File  f,
boolean  showError 
) [static]

Load XML Document from specified file.
Return null if no document can be loaded.

static Document icy.util.XMLUtil.loadDocument ( String  path) [static]

Load XML Document from specified path.
Return null if no document can be loaded.

static Document icy.util.XMLUtil.loadDocument ( URL  url) [static]

Load XML Document from specified URL.
Return null if no document can be loaded.

static Document icy.util.XMLUtil.loadDocument ( String  path,
boolean  showError 
) [static]

Load XML Document from specified path.
Return null if no document can be loaded.

static Document icy.util.XMLUtil.loadDocument ( URL  url,
boolean  showError 
) [static]

Load XML Document from specified URL.
Return null if no document can be loaded.

static void icy.util.XMLUtil.removeAllChilds ( Node  node) [static]

Remove all child from the specified node

static void icy.util.XMLUtil.removeAttribute ( Element  element,
String  name 
) [static]

Remove an attribute from the specified node

static void icy.util.XMLUtil.removeChilds ( Node  node,
String  name 
) [static]

Remove all child with specified name from the specified node

static boolean icy.util.XMLUtil.removeNode ( Node  parent,
Node  child 
) [static]

Remove the specified node from the specified parent node

static boolean icy.util.XMLUtil.removeNode ( Node  node,
String  name 
) [static]

Remove a node with specified name from the specified node

static boolean icy.util.XMLUtil.saveDocument ( Document  doc,
File  f 
) [static]

Save the specified XML Document to specified file.
Return false if an error occurred.

static boolean icy.util.XMLUtil.saveDocument ( Document  doc,
String  filename 
) [static]

Save the specified XML Document to specified filename.
Return false if an error occurred.

static void icy.util.XMLUtil.setAttributeBooleanValue ( Element  element,
String  attribute,
boolean  value 
) [static]

Set an attribute and his value as boolean to the specified node

static void icy.util.XMLUtil.setAttributeDoubleValue ( Element  element,
String  attribute,
double  value 
) [static]

Set an attribute and his value as double to the specified node

static void icy.util.XMLUtil.setAttributeFloatValue ( Element  element,
String  attribute,
float  value 
) [static]

Set an attribute and his value as float to the specified node

static void icy.util.XMLUtil.setAttributeIntValue ( Element  element,
String  attribute,
int  value 
) [static]

Set an attribute and his value as integer to the specified node

static void icy.util.XMLUtil.setAttributeStringValue ( Element  element,
String  attribute,
String  value 
) [static]

Set an attribute and his value as String to the specified node

static void icy.util.XMLUtil.setAttributeValue ( Element  element,
String  attribute,
String  value 
) [static]

Set an attribute and his value to the specified node

static Element icy.util.XMLUtil.setElement ( Node  node,
String  name 
) [static]

Set a element with specified name to specified node.
If the Element was already existing then it's just returned.

static void icy.util.XMLUtil.setElementBooleanValue ( Node  node,
String  name,
boolean  value 
) [static]

Set a element with specified name and his value as boolean to the specified node

static void icy.util.XMLUtil.setElementDoubleValue ( Node  node,
String  name,
double  value 
) [static]

Set a element with specified name and his value as double to the specified node

static void icy.util.XMLUtil.setElementFloatValue ( Node  node,
String  name,
float  value 
) [static]

Set a element with specified name and his value as float to the specified node

static void icy.util.XMLUtil.setElementIntValue ( Node  node,
String  name,
int  value 
) [static]

Set a element with specified name and his value as integer to the specified node

static void icy.util.XMLUtil.setElementStringValue ( Node  node,
String  name,
String  value 
) [static]

Set a element with specified name and his value as string to the specified node

static void icy.util.XMLUtil.setElementValue ( Node  node,
String  name,
String  value 
) [static]

Set a element with specified name and his value to the specified node

static Node icy.util.XMLUtil.setNode ( Node  parent,
Node  node 
) [static]

Set the specified node to the specified parent node.
The new node replace the previous existing node with the same name.


The documentation for this class was generated from the following file:
 All Classes Functions Variables