Package org.apache.daffodil.api
Interface DaffodilUnparseContentHandler
- All Superinterfaces:
ContentHandler
Accepts SAX callback events from any SAX XMLReader for unparsing
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String prefix) Returns the result of the SAX unparse containing diagnostic information.void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
skippedEntity
(String name) void
void
startElement
(String uri, String localName, String qName, Attributes attributes) void
startPrefixMapping
(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:
setDocumentLocator
in interfaceContentHandler
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
DaffodilUnparseErrorSAXException
DaffodilUnhandledSAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
DaffodilUnparseErrorSAXException
DaffodilUnhandledSAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
-
startElement
void startElement(String uri, String localName, String qName, Attributes attributes) throws DaffodilUnparseErrorSAXException, DaffodilUnhandledSAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
DaffodilUnparseErrorSAXException
DaffodilUnhandledSAXException
-
endElement
void endElement(String uri, String localName, String qName) throws DaffodilUnparseErrorSAXException, DaffodilUnhandledSAXException - Specified by:
endElement
in interfaceContentHandler
- Throws:
DaffodilUnparseErrorSAXException
DaffodilUnhandledSAXException
-
characters
void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
-
ignorableWhitespace
void ignorableWhitespace(char[] ch, int start, int length) - Specified by:
ignorableWhitespace
in interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
-