|
Project 1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcscie259.project1.mf.DefaultHandler
cscie259.project1.mf.DOMBuilder
public class DOMBuilder
A simplified version of org.apache.xml.utils.DOMBuilder. A DOMBuilder is a ContentHandler that builds a DOM out of SAX events. You MAY modify this file to whatever extent you see fit. However, you MUST complete the implementation of getDocument so that it returns a node of type DOCUMENT_NODE whose descendants represent the contents encountered by the XML parser. Those descendants should be of type ELEMENT_NODE, ATTRIBUTE_NODE, and/or TEXT_NODE. And, clearly, you MUST augment this class's implementation so that it actually handles SAX events and builds a DOM.
Constructor Summary | |
---|---|
DOMBuilder()
|
Method Summary | |
---|---|
Document |
getDocument()
Returns document's topmost node (i.e., its sole Document node). |
Methods inherited from class cscie259.project1.mf.DefaultHandler |
---|
characters, endDocument, endElement, fatalError, startDocument, startElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMBuilder()
Method Detail |
---|
public Document getDocument()
|
Project 1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |