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
SAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void characters(CharSequence characters)
characters in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlerpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionprotected void addNamespaceDeclaration(Element parentElement, String prefix, String uri)
public void setNil(boolean isNil)
org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlersetNil in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlerpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.