|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.XMLUtil
public final class XMLUtil
Simple XML utilities for parsing.
| Method Summary | |
|---|---|
static void |
addAttribute(org.w3c.dom.Node e,
java.lang.String name,
java.lang.String value)
Add the specified attribute. |
static org.w3c.dom.Node |
createProperty(org.w3c.dom.Document doc,
java.lang.String name,
java.lang.String value)
Create a property element. |
static org.w3c.dom.Element |
findElement(org.w3c.dom.Element e,
java.lang.String find)
Find a child element. |
static int |
findElementAsInt(org.w3c.dom.Element e,
java.lang.String find,
int def)
Find an element, return as an int. |
static long |
findElementAsLong(org.w3c.dom.Element e,
java.lang.String find,
long def)
Find an element, return as a long. |
static java.lang.String |
findElementAsString(org.w3c.dom.Element e,
java.lang.String find)
Find an element, return as a string. |
static java.lang.String |
getElementValue(org.w3c.dom.Element e)
Get the specified element's text value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addAttribute(org.w3c.dom.Node e,
java.lang.String name,
java.lang.String value)
e - The node to add the attribute to.name - The name of the attribute.value - The value of the attribute.
public static org.w3c.dom.Node createProperty(org.w3c.dom.Document doc,
java.lang.String name,
java.lang.String value)
doc - The document to use.name - The name of the property.value - The value to add to the property.
public static org.w3c.dom.Element findElement(org.w3c.dom.Element e,
java.lang.String find)
e - The element to search.find - The name to search for.
public static int findElementAsInt(org.w3c.dom.Element e,
java.lang.String find,
int def)
e - The element that searches.find - What we are searching for.def - The default value, if we fail to find it.
public static long findElementAsLong(org.w3c.dom.Element e,
java.lang.String find,
long def)
e - The element that searches.find - What we are searching for.def - The default value, if we fail to find it.
public static java.lang.String findElementAsString(org.w3c.dom.Element e,
java.lang.String find)
e - The element that searches.find - What we are searching for.
public static java.lang.String getElementValue(org.w3c.dom.Element e)
e - The element.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||