|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--domparser.DOMObject
Evokes the Xerces DOM parser on an XML file, returning and storing a DocumentObject tree representation of it.
| Constructor Summary | |
DOMObject(java.lang.String xmlFile)
Constructor. |
|
| Method Summary | |
void |
EvaluateAttributes(org.w3c.dom.NamedNodeMap NodeMap,
DocumentObject doc)
This method Evaluates the attributes in a given node and adds the corresponding AttributeValue objects to a given DocumentObject's AttributeList. |
DocumentObject |
EvaluateNode(org.w3c.dom.Node theNode,
DocumentObject doc)
Evaluates a Document node and creates a corresponding DocumentObject to add to an existing DocumentObject tree. |
DocumentObject |
getTree()
Returns the DocumentObject tree representation of the XML file. |
void |
listAttributes(AttributeList list)
For debugging purposes, will list the attributes in an AttributeList. |
void |
listTree(DocumentObject[] tree)
For debugging purposes. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public DOMObject(java.lang.String xmlFile)
throws java.lang.Exception
Constructor.
Takes the xmlfile, parses it into a DOM Document, then converts the DOM Document into the corresponding DocumentObject tree. Stores the DocumentObject tree.
xmlFile - The XML file to process/convert.java.lang.Exception - | Method Detail |
public DocumentObject getTree()
Returns the DocumentObject tree representation of the XML file.
public void listAttributes(AttributeList list)
throws java.lang.Exception
For debugging purposes, will list the attributes in an AttributeList.
list - The attribute list to display.java.lang.Exception -
public void listTree(DocumentObject[] tree)
throws HL7Exception
For debugging purposes. Lists the objects in a DocumentObject tree.
tree - The DocumentObject tree to display.HL7Exception -
public DocumentObject EvaluateNode(org.w3c.dom.Node theNode,
DocumentObject doc)
throws java.lang.Exception
Evaluates a Document node and creates a corresponding DocumentObject to add to an existing DocumentObject tree.
theNode - The DOM object Node to evaluatedoc - The The existing DocumentObject tree to add this node to.java.lang.Exception -
public void EvaluateAttributes(org.w3c.dom.NamedNodeMap NodeMap,
DocumentObject doc)
throws java.lang.Exception
This method Evaluates the attributes in a given node and adds the corresponding AttributeValue objects to a given DocumentObject's AttributeList.
NodeMap - The DOM NodeMap holding the attributes we want to convert.doc - The DocumentObject that will hold the AttributeValue objects created.java.lang.Exception -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||