Package org.faceless.publisher.ext
Interface ReportFactoryExtension
- All Known Subinterfaces:
SignatureExtension
- All Known Implementing Classes:
ContentMathMLExtension
,DefaultSignatureExtension
,GlobalSignSignatureExtension
,HtmlAutoDirExtension
,HtmlNamespaceExtension
,IndexFilter
,LessStylesheetExtension
,LinkProcessingInstructionExtension
,MailExtension
,MailServerExtension
,ScssStylesheetExtension
,SpiderExtension
,SSMLExtension
,XIncludeExtension
,XmlStylesheetExtension
,XsltAttributeExtension
public interface ReportFactoryExtension
Represents an extension to the ReportFactory, adding the ability to parse
new types of input or process it in a different way in response to a
processing instruction.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Attempt to load the specified object into the specified Report.default void
Notify this object it has beem added to a Report.default void
register
(ReportFactory factory) Notify this object it has beem added to a ReportFactory.default void
startDocument
(XMLParser.Context ctx) default void
unregister
(Report report) Notify this object when the Report it was registered on has completed parsing.default void
unregister
(ReportFactory factory) Notify this object it has been removed from a ReportFactory.
-
Method Details
-
unregister
Notify this object it has been removed from a ReportFactory. Will be called when this object is removed from the list returned byReportFactory.getReportFactoryExtensions
. The default implementation is a no-op. -
register
Notify this object it has beem added to a ReportFactory. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions
. The default implementation is a no-op. -
register
Notify this object it has beem added to a Report. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions
. The default implementation is a no-op. -
unregister
Notify this object when the Report it was registered on has completed parsing. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions
. The default implementation is a no-op. -
load
Attempt to load the specified object into the specified Report. If this extension can load the specified type of object, it should configure the report however it needs to, eventually callload(java.lang.Object, org.faceless.publisher.Report)
with anInputSource
,Reader
or similar, and return true. If this extension cannot load the specified type of object, return false. This is the default.- Throws:
IOException
-
startDocument
- Throws:
SAXException
-