public abstract class AbstractFormat extends Object implements LogicalModelFormat
LogicalModelFormat.MultivaluedSupport| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFormat(String id,
String name) |
protected |
AbstractFormat(String id,
String name,
boolean supportsMultivalued)
Deprecated.
|
protected |
AbstractFormat(String id,
String name,
LogicalModelFormat.MultivaluedSupport modelType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExport()
Does this format supports export operation?
|
boolean |
canImport()
Does this format supports import operation?
|
void |
export(LogicalModel model,
OutputStream out) |
void |
export(LogicalModel model,
OutputStreamProvider outputProvider)
Export a logical model to this format.
|
String |
getID()
get the ID of the format.
|
LogicalModelFormat.MultivaluedSupport |
getMultivaluedSupport()
Precise type of support for multivalued models.
|
String |
getName()
Get a longer name for the format.
|
LogicalModel |
importFile(File f)
Import a file in this format and build a logical model for it.
|
boolean |
supportsMultivalued()
Does this format handle multivalued models?
|
String |
toString() |
@Deprecated protected AbstractFormat(String id, String name, boolean supportsMultivalued)
protected AbstractFormat(String id, String name, LogicalModelFormat.MultivaluedSupport modelType)
public String getID()
LogicalModelFormatgetID in interface LogicalModelFormatpublic String getName()
LogicalModelFormatgetName in interface LogicalModelFormatpublic boolean canExport()
LogicalModelFormatcanExport in interface LogicalModelFormatpublic boolean canImport()
LogicalModelFormatcanImport in interface LogicalModelFormatpublic boolean supportsMultivalued()
LogicalModelFormatsupportsMultivalued in interface LogicalModelFormatpublic LogicalModelFormat.MultivaluedSupport getMultivaluedSupport()
LogicalModelFormatgetMultivaluedSupport in interface LogicalModelFormatpublic LogicalModel importFile(File f) throws IOException
LogicalModelFormatimportFile in interface LogicalModelFormatf - the file to importIOException - if loading failedpublic void export(LogicalModel model, OutputStreamProvider outputProvider) throws IOException
LogicalModelFormatexport in interface LogicalModelFormatmodel - the model to exportoutputProvider - an object providing output streams on demand for saving to one or multiple filesIOException - if writing failedpublic void export(LogicalModel model, OutputStream out) throws IOException
IOExceptionCopyright © 2012-2017. All Rights Reserved.