|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.tools.cda.xpi.AModelObjectVisitor
org.pf.tools.cda.plugin.export.spi.AModelExporter
public abstract class AModelExporter
The purpose of this abstract exporter class is to provide default implementations of methods that may be overridden by subclasses. This is more stable in comparison to an interface, since adding new methods won't break already existing subclasses.
| Field Summary | |
|---|---|
static java.lang.String |
PARAM_OUTPUT_FILENAME
Defines the parameter name of the configuration setting for the initialize() method that specifies the filename to which the output must be written. |
| Constructor Summary | |
|---|---|
AModelExporter()
|
|
| Method Summary | |
|---|---|
void |
abortExport()
This method gets called if the export must be aborted due to user interrupt or any exception that occurred during export execution. |
boolean |
finishExport()
This method gets called after all data has been passed to the exporter and so far no exception or cancellation occurred. |
java.lang.String |
getPluginId()
Returns the exporte's id |
abstract boolean |
initialize(PluginConfiguration config)
Initialize the exporter with external configuration data. |
boolean |
prepareExport()
This method is called to initiate an export. |
void |
setId(java.lang.String id)
Returns the exporte's id |
| Methods inherited from class org.pf.tools.cda.xpi.AModelObjectVisitor |
|---|
finishContainer, finishContext, finishModelObject, finishNamespace, finishType, startContainer, startContext, startModelObject, startNamespace, startType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pf.tools.cda.xpi.IPluginInfo |
|---|
getPluginProvider, getPluginVersion |
| Field Detail |
|---|
public static final java.lang.String PARAM_OUTPUT_FILENAME
| Constructor Detail |
|---|
public AModelExporter()
| Method Detail |
|---|
public abstract boolean initialize(PluginConfiguration config)
The data provided with this config object can be a filename or a database URL with user id and password or whatever is necessary to enable the specific exporter to do its work.
config - The configuration to be used for initialization
public boolean prepareExport()
public boolean finishExport()
The default application returns true.
public void abortExport()
The default implemention here is doing nothing.
public java.lang.String getPluginId()
getPluginId in interface IPluginInfopublic void setId(java.lang.String id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||