public interface LogicalModelFormat extends Service
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExport()
Does this format supports export operation?
|
boolean |
canLoad()
Does this format supports loading models?
|
default void |
export(LogicalModel model,
File destination)
Export a logical model to this format.
|
default void |
export(LogicalModel model,
StreamProvider streams)
Export a logical model to this format.
|
default void |
export(LogicalModel model,
String filename)
Export a logical model to this format.
|
default ModelExporter |
getExporter(LogicalModel model)
Get a new model exporter to this format.
|
default ModelLoader |
getLoader()
Get a new model loader from this format.
|
default LogicalModel |
load(File source)
Load a file in this format and build a logical model for it.
|
default LogicalModel |
load(StreamProvider streams)
Load a file in this format and build a logical model for it.
|
default LogicalModel |
load(String filename)
Load a file in this format and build a logical model for it.
|
getAliases, getDescription, getID, getMultivaluedSupport, getNameboolean canExport()
boolean canLoad()
default ModelLoader getLoader()
UnsupportedOperationException - if this format does not support loadingdefault ModelExporter getExporter(LogicalModel model)
model - the model to exportUnsupportedOperationException - if this format does not support exportdefault void export(LogicalModel model, StreamProvider streams) throws Exception
model - the model to exportstreams - an object providing output streams on demand for saving to one or multiple filesUnsupportedOperationException - if this format does not support exportException - if writing faileddefault void export(LogicalModel model, File destination) throws Exception
model - the model to exportdestination - the destination file. Some formats may generate multiple output files based on it's pathUnsupportedOperationException - if this format does not support exportException - if writing faileddefault void export(LogicalModel model, String filename) throws Exception
model - the model to exportfilename - the destination file. Some formats may generate multiple output files based on it's pathUnsupportedOperationException - if this format does not support exportException - if writing faileddefault LogicalModel load(StreamProvider streams) throws Exception
streams - an object providing input streams on demand, allowing to load from one or multiple filesUnsupportedOperationException - if this format does not support loadingException - if loading faileddefault LogicalModel load(File source) throws Exception
source - the source file. Some formats may read multiple filesUnsupportedOperationException - if this format does not support loadingException - if loading faileddefault LogicalModel load(String filename) throws Exception
filename - the source file name. Some formats may read multiple filesUnsupportedOperationException - if this format does not support loadingException - if loading failedCopyright © 2012–2020. All rights reserved.