Class SAXDocumentBuilder
java.lang.Object
org.eclipse.persistence.platform.xml.SAXDocumentBuilder
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler,ContentHandler,LexicalHandler
- Direct Known Subclasses:
JAXBUnmarshallerHandler,XMLUnmarshallerHandler
public class SAXDocumentBuilder
extends Object
implements org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, LexicalHandler
Purpose: Build a DOM from SAX events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Documentprotected Locatorprotected Mapprotected org.eclipse.persistence.internal.oxm.StrBufferprotected XMLPlatform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNamespaceDeclaration(Element parentElement, String prefix, String uri) voidappendChildNode(Node parentNode, Node childNode) voidcharacters(char[] ch, int start, int length) voidcharacters(CharSequence characters) voidcomment(char[] ch, int start, int length) voidendCDATA()voidvoidendDTD()voidendElement(String namespaceURI, String localName, String qName) voidvoidendPrefixMapping(String prefix) voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidsetNil(boolean isNil) This method can be used to track that the current element is nilvoidskippedEntity(String name) voidvoidvoidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri)
-
Field Details
-
document
-
nodes
-
xmlPlatform
-
namespaceDeclarations
-
stringBuffer
protected org.eclipse.persistence.internal.oxm.StrBuffer stringBuffer -
locator
-
-
Constructor Details
-
SAXDocumentBuilder
public SAXDocumentBuilder()
-
-
Method Details
-
getDocument
-
getInitializedDocument
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceorg.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
addNamespaceDeclaration
-
appendChildNode
-
setNil
public void setNil(boolean isNil) Description copied from interface:org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlerThis method can be used to track that the current element is nil- Specified by:
setNilin interfaceorg.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-