|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjnlp.sample.servlet.XMLParsing
public class XMLParsing
Contains handy methods for looking up information stored in XMLNodes.
Nested Class Summary | |
---|---|
static class |
XMLParsing.ElementVisitor
Iterator class |
Constructor Summary | |
---|---|
XMLParsing()
|
Method Summary | |
---|---|
static XMLNode |
convert(org.w3c.dom.Node n)
|
static XMLNode |
findChildElement(XMLNode elem,
java.lang.String tag)
Returns an child element with the current tag name or null. |
static XMLNode |
findElementPath(XMLNode elem,
java.lang.String path)
Parses a path string of the form |
static java.lang.String |
getElementContent(XMLNode root,
java.lang.String path)
Like getElementContents(...) but with a defaultValue of null |
static java.lang.String |
getElementContent(XMLNode root,
java.lang.String path,
java.lang.String defaultvalue)
Returns the value of the last element tag in the path, e.g., <..> |
static java.lang.String[] |
getMultiElementContent(XMLNode root,
java.lang.String path)
Like getElementContents(...) but with a defaultValue of null |
static java.lang.String |
getPathString(XMLNode e)
Returns a string describing the current location in the DOM |
static boolean |
isElementPath(XMLNode root,
java.lang.String path)
Returns true if the path exists in the document, otherwise false |
static void |
visitChildrenElements(XMLNode elem,
XMLParsing.ElementVisitor ev)
|
static void |
visitElements(XMLNode root,
java.lang.String path,
XMLParsing.ElementVisitor ev)
Visits all elements which matches the |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParsing()
Method Detail |
---|
public static XMLNode convert(org.w3c.dom.Node n)
public static boolean isElementPath(XMLNode root, java.lang.String path)
public static java.lang.String getPathString(XMLNode e)
public static java.lang.String getElementContent(XMLNode root, java.lang.String path)
public static java.lang.String[] getMultiElementContent(XMLNode root, java.lang.String path)
public static java.lang.String getElementContent(XMLNode root, java.lang.String path, java.lang.String defaultvalue)
public static XMLNode findElementPath(XMLNode elem, java.lang.String path)
public static XMLNode findChildElement(XMLNode elem, java.lang.String tag)
public static void visitElements(XMLNode root, java.lang.String path, XMLParsing.ElementVisitor ev)
public static void visitChildrenElements(XMLNode elem, XMLParsing.ElementVisitor ev)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |