com.sun.tools.xjc.reader.internalizer
Class DOMBuilder
java.lang.Object
com.sun.xml.bind.marshaller.SAX2DOMEx
com.sun.tools.xjc.reader.internalizer.DOMBuilder
- All Implemented Interfaces:
- ContentHandler
class DOMBuilder
- extends SAX2DOMEx
Builds DOM while keeping the location information.
This class also looks for outer most <jaxb:bindings>
customizations.
Constructor Summary |
DOMBuilder(Document dom,
LocatorTable ltable,
Set outerMostBindings)
Grows a DOM tree under the given document, and
stores location information to the given table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMBuilder
public DOMBuilder(Document dom,
LocatorTable ltable,
Set outerMostBindings)
- Grows a DOM tree under the given document, and
stores location information to the given table.
- Parameters:
outerMostBindings
- This set will receive newly found outermost
jaxb:bindings customizations.
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interface ContentHandler
- Overrides:
setDocumentLocator
in class SAX2DOMEx
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class SAX2DOMEx
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class SAX2DOMEx