Package org.apache.daffodil.api
Interface DaffodilUnparseContentHandler
- All Superinterfaces:
ContentHandler
Accepts SAX callback events from any SAX XMLReader for unparsing
-
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String qName) voidendPrefixMapping(String prefix) Returns the result of the SAX unparse containing diagnostic information.voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidstartElement(String uri, String localName, String qName, Attributes attributes) voidstartPrefixMapping(String prefix, String uri) Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Method Details
-
getUnparseResult
UnparseResult getUnparseResult()Returns the result of the SAX unparse containing diagnostic information. In the case of an DaffodilUnhandledSAXException, this will return null.- Returns:
- result of the SAX unparse containing diagnostic information
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
DaffodilUnparseErrorSAXExceptionDaffodilUnhandledSAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
DaffodilUnparseErrorSAXExceptionDaffodilUnhandledSAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler
-
startElement
void startElement(String uri, String localName, String qName, Attributes attributes) throws DaffodilUnparseErrorSAXException, DaffodilUnhandledSAXException - Specified by:
startElementin interfaceContentHandler- Throws:
DaffodilUnparseErrorSAXExceptionDaffodilUnhandledSAXException
-
endElement
void endElement(String uri, String localName, String qName) throws DaffodilUnparseErrorSAXException, DaffodilUnhandledSAXException - Specified by:
endElementin interfaceContentHandler- Throws:
DaffodilUnparseErrorSAXExceptionDaffodilUnhandledSAXException
-
characters
void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler
-
ignorableWhitespace
void ignorableWhitespace(char[] ch, int start, int length) - Specified by:
ignorableWhitespacein interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler
-