com.sun.tools.ws.wsdl.parser
Class DOMBuilder
java.lang.Object
com.sun.xml.bind.marshaller.SAX2DOMEx
com.sun.tools.ws.wsdl.parser.DOMBuilder
- All Implemented Interfaces:
- ContentHandler, LexicalHandler
class DOMBuilder
- extends com.sun.xml.bind.marshaller.SAX2DOMEx
- implements LexicalHandler
Builds DOM while keeping the location information.
This class also looks for outer most <jaxws:bindings>
customizations.
Fields inherited from class com.sun.xml.bind.marshaller.SAX2DOMEx |
document, nodeStack |
Constructor Summary |
DOMBuilder(Document dom,
com.sun.tools.xjc.reader.internalizer.LocatorTable ltable,
Set outerMostBindings)
Grows a DOM tree under the given document, and
stores location information to the given table. |
Methods inherited from class com.sun.xml.bind.marshaller.SAX2DOMEx |
characters, characters, endDocument, endPrefixMapping, getCurrentElement, getDOM, ignorableWhitespace, namespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMBuilder
public DOMBuilder(Document dom,
com.sun.tools.xjc.reader.internalizer.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 com.sun.xml.bind.marshaller.SAX2DOMEx
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class com.sun.xml.bind.marshaller.SAX2DOMEx
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class com.sun.xml.bind.marshaller.SAX2DOMEx
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
startDTD
in interface LexicalHandler
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD
in interface LexicalHandler
- Throws:
SAXException
startEntity
public void startEntity(String name)
throws SAXException
- Specified by:
startEntity
in interface LexicalHandler
- Throws:
SAXException
endEntity
public void endEntity(String name)
throws SAXException
- Specified by:
endEntity
in interface LexicalHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA
in interface LexicalHandler
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA
in interface LexicalHandler
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
comment
in interface LexicalHandler
- Throws:
SAXException
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.