MetaDone
|
Classes | |
class | AbstractImporter |
Public Member Functions | |
String | getMetamodelName (String ext) throws BadPreCondition |
MetaModel | getMetamodel (String ext) throws BadPreCondition |
ConcreteModel | createConcreteModel (String ext, String source) throws BadPreCondition, IOException |
ConcreteModel | createConcreteModel (String ext, InputStream input) throws BadPreCondition, IOException |
Imports models from various sources.
Supports generating different models by extension of the file (the type of the file).
ConcreteModel metadone.client.functions.importer.Importer.createConcreteModel | ( | String | ext, |
String | source | ||
) | throws BadPreCondition, IOException |
Creates a concrete model for a given extension and a source file.
ext | The extension |
source | The source file |
BadPreCondition | when the model couldn't be created |
IOException | when there was an exception while reading the file |
Implemented in metadone.client.functions.importer.Importer.AbstractImporter, metadone.client.functions.importer.ModelImporter, and metadone.client.functions.importer.owl.OWLImporter.
Referenced by metadone.client.actions.ImportModelAction.actionPerformed(), metadone.client.functions.importer.ModelImporter.createConcreteModel(), metadone.client.actions.Test4Action.initConcreteModel(), metadone.client.actions.OntologyImportAction.initConcreteModel(), metadone.client.actions.Test4Action.initConcreteModelForOwlOnt(), and metadone.client.actions.OntologyImportAction.initConcreteModelForOwlOnt().
ConcreteModel metadone.client.functions.importer.Importer.createConcreteModel | ( | String | ext, |
InputStream | input | ||
) | throws BadPreCondition, IOException |
Creates a concrete model for a given extension and contents.
The model is generated using getMetamodel(String) for the creation of the concrete model.
ext | The extension |
input | The contents of the file |
BadPreCondition | when the model couldn't be created |
IOException | when the input couldn't be parsed |
Implemented in metadone.client.functions.importer.GrasylaImporter, metadone.client.functions.importer.km3.KM3Importer, metadone.client.functions.importer.ModelImporter, and metadone.client.functions.importer.owl.OWLImporter.
MetaModel metadone.client.functions.importer.Importer.getMetamodel | ( | String | ext | ) | throws BadPreCondition |
Creates a metamodel for the given extension.
ext | The extension (may be null ) |
null
BadPreCondition |
Implemented in metadone.client.functions.importer.Importer.AbstractImporter, and metadone.client.functions.importer.ModelImporter.
Referenced by metadone.client.actions.ImportModelAction.actionPerformed(), metadone.client.functions.importer.ModelImporter.addImporter(), metadone.client.functions.importer.ModelImporter.getMetamodel(), metadone.client.actions.Test4Action.initMetaModel(), metadone.client.actions.OntologyImportAction.initMetaModel(), metadone.client.actions.Test4Action.initMetaModelForOwl(), and metadone.client.actions.OntologyImportAction.initMetaModelForOwl().
String metadone.client.functions.importer.Importer.getMetamodelName | ( | String | ext | ) | throws BadPreCondition |
Returns the name of the metamodel for the given extension.
If the extension is supported, a name of the metamodel is returned. null
is returned when the extension is not supported.
ext | The extension (may be null ) |
null
BadPreCondition |
Implemented in metadone.client.functions.importer.Importer.AbstractImporter, and metadone.client.functions.importer.ModelImporter.
Referenced by metadone.client.functions.importer.ModelImporter.getMetamodelName().