public class SaxToDomHandler extends org.xml.sax.helpers.DefaultHandler implements LexicalHandler, DTDHandler, DeclHandler
| Modifier and Type | Field and Description |
|---|---|
protected Node |
currentNode |
protected DocumentFragment |
docFragment |
protected Document |
document |
protected DOMImplementation |
domImplementation |
protected DocumentType |
dt |
protected boolean |
fragment |
protected List<com.siemens.ct.exi.main.api.dom.SaxToDomHandler.PrefixMapping> |
prefixes |
| Constructor and Description |
|---|
SaxToDomHandler(DOMImplementation domImplementation,
boolean fragment) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(String eName,
String aName,
String type,
String mode,
String value) |
void |
characters(char[] ch,
int start,
int length) |
protected Document |
checkDocument() |
void |
comment(char[] ch,
int start,
int length) |
void |
elementDecl(String name,
String model) |
void |
endCDATA() |
void |
endDTD() |
void |
endElement(String uri,
String name,
String qName) |
void |
endEntity(String name) |
void |
externalEntityDecl(String name,
String publicId,
String systemId) |
Document |
getDocument() |
DocumentFragment |
getDocumentFragment() |
void |
internalEntityDecl(String name,
String value) |
void |
notationDecl(String name,
String publicId,
String systemId) |
void |
processingInstruction(String target,
String data) |
void |
startCDATA() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String uri,
String name,
String qName,
Attributes attrs) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri) |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, resolveEntity, setDocumentLocator, skippedEntity, startDocument, warningprotected Document document
protected DocumentFragment docFragment
protected DOMImplementation domImplementation
protected boolean fragment
protected Node currentNode
protected DocumentType dt
protected List<com.siemens.ct.exi.main.api.dom.SaxToDomHandler.PrefixMapping> prefixes
public SaxToDomHandler(DOMImplementation domImplementation, boolean fragment)
protected Document checkDocument()
public Document getDocument()
public DocumentFragment getDocumentFragment()
public void startElement(String uri, String name, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String name, String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void processingInstruction(String target, String data)
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlerpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlerSAXExceptionpublic void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl in interface DTDHandlernotationDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl in interface DTDHandlerunparsedEntityDecl in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void attributeDecl(String eName, String aName, String type, String mode, String value) throws SAXException
attributeDecl in interface DeclHandlerSAXExceptionpublic void elementDecl(String name, String model) throws SAXException
elementDecl in interface DeclHandlerSAXExceptionpublic void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl in interface DeclHandlerSAXExceptionpublic void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl in interface DeclHandlerSAXExceptionCopyright © 2018 Siemens AG. All rights reserved.