MetaDone
metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter Class Reference
Inheritance diagram for metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter:
Collaboration diagram for metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter:

List of all members.

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

Detailed Description

An abstract implementation of a promoting importer.

See also:
Importer.AbstractImporter

Constructor & Destructor Documentation

Initializes this promoter.

Parameters:
metamodelNameThe meta-model name
extensionsThe extensions

Member Function Documentation

MetaModel metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.promoteToMetamodel ( String  ext,
String  name,
ConcreteModel  model 
) throws BadPreCondition

Promotes a concrete model to a meta model.

Parameters:
extThe extension of the model
nameThe name of the metamodel to create
modelThe concrete model
Returns:
A metamodel generated from the model
Exceptions:
NullPointerExceptionwhen name or model is null
BadPreConditionwhen 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.

Parameters:
metamodelThe metamodel of the concrete model
modelThe concrete model
newMetamodelThe metamodel to initialize
Exceptions:
BadPreCondition

Implemented in metadone.client.functions.importer.km3.KM3Importer, and metadone.client.functions.importer.owl.OWLImporter.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations