public class ModelExportEngine
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
export(AModelObject modelObject,
AModelExporter exporter)
Exports the given model object and returns true if the export was successful.
|
boolean |
export(AModelObject modelObject,
IProgressMonitor progressMonitor,
AModelExporter exporter)
Exports the given model object and returns true if the export was successful.
|
static ModelExportEngine |
instance()
Returns the only instance this class supports (design pattern "Singleton")
|
public static ModelExportEngine instance()
public boolean export(AModelObject modelObject, AModelExporter exporter) throws java.lang.Exception
modelObject
- The object of the mode at which to start the export (must not be null).exporter
- The actual exporter that gets called for each element to write it to its destination (must not be null).java.lang.Exception
- for any severe error that happens.public boolean export(AModelObject modelObject, IProgressMonitor progressMonitor, AModelExporter exporter) throws java.lang.Exception
modelObject
- The object of the mode at which to start the export (must not be null).progressMonitor
- An object that can be used to track the progress and to abort the export processing (may be null).exporter
- The actual exporter that gets called for each element to write it to its destination (must not be null).java.lang.Exception
- for any severe error that happens.