MetaDone
|
Public Member Functions | |
AbstractPromotingImporter (String metamodelName, String[] extensions) | |
MetaModel | promoteToMetamodel (String ext, String name, ConcreteModel model) throws BadPreCondition |
Protected Member Functions | |
abstract void | promoteToMetamodel (MetaModel metamodel, ConcreteModel model, MetaModel newMetamodel) throws BadPreCondition |
An abstract implementation of a promoting importer.
metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.AbstractPromotingImporter | ( | String | metamodelName, |
String[] | extensions | ||
) |
Initializes this promoter.
metamodelName | The meta-model name |
extensions | The extensions |
MetaModel metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.promoteToMetamodel | ( | String | ext, |
String | name, | ||
ConcreteModel | model | ||
) | throws BadPreCondition |
Promotes a concrete model to a meta model.
ext | The extension of the model |
name | The name of the metamodel to create |
model | The concrete model |
NullPointerException | when name or model is null |
BadPreCondition | when the model failed to be created or the name was already used |
Implements metadone.client.functions.importer.PromotingImporter.
References metadone.exception.NullArgument.check(), metadone.metabusiness.MetaModel.createMetaModel(), metadone.metabusiness.Workspace.getMainMetaModel(), metadone.client.MainClientMetadone.getSingleton(), and metadone.client.MainClientMetadone.getWorkspace().
abstract void metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.promoteToMetamodel | ( | MetaModel | metamodel, |
ConcreteModel | model, | ||
MetaModel | newMetamodel | ||
) | throws BadPreCondition [protected, pure virtual] |
Initializes a metamodel from a model.
metamodel | The metamodel of the concrete model |
model | The concrete model |
newMetamodel | The metamodel to initialize |
BadPreCondition |
Implemented in metadone.client.functions.importer.km3.KM3Importer, and metadone.client.functions.importer.owl.OWLImporter.