Package com.inet.pdfc.presenter
Class JsonPresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.JsonPresenter
- All Implemented Interfaces:
NamedExtension
A presenter to format the
Modification
s of a comparison run to JSON Data.- Since:
- i-net PDFC 4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
JSON format for differencesstatic class
JSON format for result model for enduserstatic class
JSON format for result model for enduserNested classes/interfaces inherited from class com.inet.pdfc.presenter.BasePresenter
BasePresenter.ERROR_SOURCE
-
Field Summary
Fields inherited from class com.inet.pdfc.presenter.BasePresenter
LOGGER, MAX_FILENAME_LENGTH
-
Constructor Summary
-
Method Summary
Methods inherited from class com.inet.pdfc.presenter.BasePresenter
canInformUserOnErrors, configure, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setModel, setParent
-
Constructor Details
-
JsonPresenter
public JsonPresenter()
-
-
Method Details
-
getExtensionName
Returns the UNIQUE name of the extension. With UNIQUE referring to 'unique among all implementations of the same interface'- Returns:
- the UNIQUE name of the extension
-
onComparisonDone
Called to indicate that a comparison has finished. This does not imply that any page data or differences are available.- Specified by:
onComparisonDone
in classBasePresenter
- Throws:
Exception
- thrown in case the processing of the finish step fails- Since:
- i-net PDFC 4.0
-
getJson
Return the JSON Data as String- Returns:
- JSON Data
- Since:
- i-net PDFC 4.0
-
spawn
Creates another presenter of the the same type as the current one. The spawned presenter may either have the same settings as the current one or it may be a child of the current one.- Overrides:
spawn
in classBasePresenter
- Parameters:
spawnWithParent
- if true, the presenter is allowed to keep a reference to it's parent to create a summary on onFinish()- Returns:
- a new presenter for the same batch comparison run as the current one
-