public class SAXDocumentBuilder extends Object implements org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, LexicalHandler
Purpose: Build a DOM from SAX events.
Modifier and Type | Field and Description |
---|---|
protected Document |
document |
protected Locator |
locator |
protected Map |
namespaceDeclarations |
protected List<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(Element parentElement,
String prefix,
String uri) |
void |
appendChildNode(Node parentNode,
Node childNode) |
void |
characters(char[] ch,
int start,
int length) |
void |
characters(CharSequence characters) |
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
Document |
getDocument() |
Document |
getInitializedDocument() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
setNil(boolean isNil)
This method can be used to track that the current element is nil
|
void |
skippedEntity(String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri) |
protected Document document
protected XMLPlatform xmlPlatform
protected Map namespaceDeclarations
protected org.eclipse.persistence.internal.oxm.StrBuffer stringBuffer
protected Locator locator
public Document getDocument()
public Document getInitializedDocument() throws SAXException
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void characters(CharSequence characters)
characters
in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
protected void addNamespaceDeclaration(Element parentElement, String prefix, String uri)
public void setNil(boolean isNil)
org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
setNil
in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.