public class SAXDocumentBuilder
extends java.lang.Object
implements org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
Purpose: Build a DOM from SAX events.
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
document |
protected org.xml.sax.Locator |
locator |
protected java.util.Map |
namespaceDeclarations |
protected java.util.List<org.w3c.dom.Node> |
nodes |
protected org.eclipse.persistence.internal.oxm.StrBuffer |
stringBuffer |
protected XMLPlatform |
xmlPlatform |
Constructor and Description |
---|
SAXDocumentBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespaceDeclaration(org.w3c.dom.Element parentElement,
java.lang.String prefix,
java.lang.String uri) |
void |
appendChildNode(org.w3c.dom.Node parentNode,
org.w3c.dom.Node childNode) |
void |
characters(char[] ch,
int start,
int length) |
void |
characters(java.lang.CharSequence characters) |
void |
endDocument() |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
org.w3c.dom.Document |
getDocument() |
org.w3c.dom.Document |
getInitializedDocument() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
setNil(boolean isNil) |
void |
skippedEntity(java.lang.String name) |
void |
startDocument() |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
protected org.w3c.dom.Document document
protected java.util.List<org.w3c.dom.Node> nodes
protected XMLPlatform xmlPlatform
protected java.util.Map namespaceDeclarations
protected org.eclipse.persistence.internal.oxm.StrBuffer stringBuffer
protected org.xml.sax.Locator locator
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Document getInitializedDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(java.lang.CharSequence characters)
characters
in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
protected void addNamespaceDeclaration(org.w3c.dom.Element parentElement, java.lang.String prefix, java.lang.String uri)
public void appendChildNode(org.w3c.dom.Node parentNode, org.w3c.dom.Node childNode)
public void setNil(boolean isNil)
setNil
in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler