|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.Hashtree2Node
Simple static utility to convert Hashtable to a Node. Please maintain JDK 1.1.x compatibility; no Collections!
EnvironmentCheck
,
Extensions
Constructor Summary | |
Hashtree2Node()
|
Method Summary | |
static void |
appendHashToNode(Hashtable hash,
String name,
org.w3c.dom.Node container,
org.w3c.dom.Document factory)
Convert a Hashtable into a Node tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Hashtree2Node()
Method Detail |
public static void appendHashToNode(Hashtable hash, String name, org.w3c.dom.Node container, org.w3c.dom.Document factory)
The hash may have either Hashtables as values (in which case we recurse) or other values, in which case we print them as <item> elements, with a 'key' attribute with the value of the key, and the element contents as the value.
If args are null we simply return without doing anything. If we encounter an error, we will attempt to add an 'ERROR' Element with exception info; if that doesn't work we simply return without doing anything else byt printStackTrace().
hash
- to get info from (may have sub-hashtables)name
- to use as parent element for appended node
futurework could have namespace and prefix as wellcontainer
- Node to append our report tofactory
- Document providing createElement, etc. services
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |