Package com.xmlcalabash.steps.validation
Class CachingErrorListener
-
- All Implemented Interfaces:
-
javax.xml.transform.ErrorListener
,net.sf.saxon.lib.ErrorReporter
,net.sf.saxon.lib.InvalidityHandler
,org.xml.sax.ErrorHandler
public final class CachingErrorListener implements ErrorHandler, ErrorListener, ErrorReporter, InvalidityHandler
-
-
Field Summary
Fields Modifier and Type Field Description private ErrorListener
listener
private ErrorReporter
reporter
private ErrorHandler
handler
private final List<Exception>
exceptions
private final XProcStepConfiguration
stepConfig
private final Errors
errors
private final InvalidityHandler
invalidityHandler
-
Constructor Summary
Constructors Constructor Description CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors)
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorListener listener)
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorReporter reporter)
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorHandler handler)
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, InvalidityHandler invalidityHandler)
-
Method Summary
Modifier and Type Method Description final ErrorListener
getListener()
final Unit
setListener(ErrorListener listener)
final ErrorReporter
getReporter()
final Unit
setReporter(ErrorReporter reporter)
final ErrorHandler
getHandler()
final Unit
setHandler(ErrorHandler handler)
final List<Exception>
getExceptions()
final XProcStepConfiguration
getStepConfig()
final Errors
getErrors()
final InvalidityHandler
getInvalidityHandler()
Unit
warning(SAXParseException exception)
Unit
warning(TransformerException exception)
Unit
error(SAXParseException exception)
Unit
error(TransformerException exception)
Unit
fatalError(SAXParseException exception)
Unit
fatalError(TransformerException exception)
Unit
report(XmlProcessingError xmlProcessingError)
Unit
startReporting(String systemId)
Unit
reportInvalidity(Invalidity failure)
Sequence
endReporting()
-
-
Constructor Detail
-
CachingErrorListener
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors)
-
CachingErrorListener
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorListener listener)
-
CachingErrorListener
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorReporter reporter)
-
CachingErrorListener
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, ErrorHandler handler)
-
CachingErrorListener
CachingErrorListener(XProcStepConfiguration stepConfig, Errors errors, InvalidityHandler invalidityHandler)
-
-
Method Detail
-
getListener
final ErrorListener getListener()
-
setListener
final Unit setListener(ErrorListener listener)
-
getReporter
final ErrorReporter getReporter()
-
setReporter
final Unit setReporter(ErrorReporter reporter)
-
getHandler
final ErrorHandler getHandler()
-
setHandler
final Unit setHandler(ErrorHandler handler)
-
getExceptions
final List<Exception> getExceptions()
-
getStepConfig
final XProcStepConfiguration getStepConfig()
-
getInvalidityHandler
final InvalidityHandler getInvalidityHandler()
-
warning
Unit warning(SAXParseException exception)
-
warning
Unit warning(TransformerException exception)
-
error
Unit error(SAXParseException exception)
-
error
Unit error(TransformerException exception)
-
fatalError
Unit fatalError(SAXParseException exception)
-
fatalError
Unit fatalError(TransformerException exception)
-
startReporting
Unit startReporting(String systemId)
-
reportInvalidity
Unit reportInvalidity(Invalidity failure)
-
endReporting
Sequence endReporting()
-
-
-
-