|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttools.XmlUtils
public final class XmlUtils
Booch utility class providing helper functions for working with XML.
Method Summary | |
---|---|
static boolean |
extractBooleanAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName)
Deprecated. |
static boolean |
extractBooleanAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName,
boolean defaultValue)
Deprecated. |
static int[] |
extractIntegerArrayAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName)
Deprecated. |
static int |
extractIntegerAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName)
Deprecated. |
static int |
extractIntegerAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName,
int defaultValue)
Deprecated. |
static java.lang.String |
extractStringAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName)
Deprecated. |
static java.lang.String |
extractStringAttribute(org.w3c.dom.NamedNodeMap nnp,
java.lang.String attrName,
java.lang.String defaultValue)
Deprecated. |
static org.w3c.dom.Element |
findElementInFile(java.lang.String fileName,
java.lang.String elementName)
Opens and parses an xml file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String extractStringAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName)
public static java.lang.String extractStringAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName, java.lang.String defaultValue)
public static int extractIntegerAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName) throws ConfigurationException
ConfigurationException
public static int extractIntegerAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName, int defaultValue) throws ConfigurationException
ConfigurationException
public static boolean extractBooleanAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName) throws ConfigurationException
ConfigurationException
public static boolean extractBooleanAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName, boolean defaultValue) throws ConfigurationException
ConfigurationException
public static int[] extractIntegerArrayAttribute(org.w3c.dom.NamedNodeMap nnp, java.lang.String attrName) throws ConfigurationException
ConfigurationException
public static org.w3c.dom.Element findElementInFile(java.lang.String fileName, java.lang.String elementName) throws ConfigurationException
fileName
- the name of the file to openelementName
- the name of the element to find
ConfigurationException
- if there is any problem opening and
parsing the file, or if the file does not contain a top level element
with the given name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |