|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.util.DOMHelp
Some helper stuff for handling DOM trees.
Nested Class Summary | |
private static class |
DOMHelp.NodeListIterator
Internal helper class for accessing node lists through an Iterator. |
Constructor Summary | |
private |
DOMHelp()
The class is uninstantiable and contains only static methods. |
Method Summary | |
static EDate |
createEDate(java.lang.String nodevalue)
Create an EDate out of a String representation. |
static org.w3c.dom.Element |
createSingleTextElement(org.w3c.dom.Document doc,
java.lang.String name,
java.lang.String value)
Convenience method for creation of an Element which only contains one textual value node. |
static org.w3c.dom.Node |
findLeaf(org.w3c.dom.Node n,
java.lang.String name)
Find the (first) child of the given node which has the given name. |
static org.w3c.dom.Node |
findLeaf(org.w3c.dom.Node n,
java.lang.String[] names)
Strange method which seems to be superfluous |
static java.util.Iterator |
getNodeListIterator(org.w3c.dom.NodeList nl)
Return an Iterator for a given NodeList. |
static boolean |
isNode(java.lang.String nodename,
org.w3c.dom.Node node)
Returns whether a node has a certain name. |
static org.w3c.dom.Element |
propertiesToXML(org.w3c.dom.Document doc,
java.lang.String elementname,
java.util.Properties p)
Create an XML representation of a Properties instance. |
static java.util.Properties |
xmlToProperties(org.w3c.dom.Element father)
|
static java.util.Properties |
xmlToProperties(org.w3c.dom.Element father,
java.util.Properties p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private DOMHelp()
Method Detail |
public static java.util.Iterator getNodeListIterator(org.w3c.dom.NodeList nl)
nl
- The NodeList.
public static org.w3c.dom.Node findLeaf(org.w3c.dom.Node n, java.lang.String name)
n
- A node in the DOM tree.name
- Wanted child name.
public static org.w3c.dom.Node findLeaf(org.w3c.dom.Node n, java.lang.String[] names)
public static boolean isNode(java.lang.String nodename, org.w3c.dom.Node node)
nodename
- Name to checknode
- Nodepublic static org.w3c.dom.Element createSingleTextElement(org.w3c.dom.Document doc, java.lang.String name, java.lang.String value)
doc
- Document to insert the Element to finally.name
- Name of the element.value
- Value of the element or null if it should not contain a value.
public static EDate createEDate(java.lang.String nodevalue)
nodevalue
- Date-describing node value.
public static org.w3c.dom.Element propertiesToXML(org.w3c.dom.Document doc, java.lang.String elementname, java.util.Properties p)
doc
- Document to insert the element into.elementname
- Name of the XML element containing the Property's content.p
- Properties to convert.
public static java.util.Properties xmlToProperties(org.w3c.dom.Element father, java.util.Properties p)
public static java.util.Properties xmlToProperties(org.w3c.dom.Element father)
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |