MetaDone
metadone.client.functions.importer.km3.KM3Importer Class Reference
Inheritance diagram for metadone.client.functions.importer.km3.KM3Importer:
Collaboration diagram for metadone.client.functions.importer.km3.KM3Importer:

List of all members.

Classes

class  ModelManipulator
class  Promoter
class  Translator

Public Member Functions

 KM3Importer ()
ConcreteModel createConcreteModel (String ext, InputStream in) throws BadPreCondition, IOException

Protected Member Functions

MetaModel createMetamodel (Workspace workspace) throws BadPreCondition
void promoteToMetamodel (MetaModel metamodel, ConcreteModel model, MetaModel newMetamodel) throws BadPreCondition

Detailed Description

Imports KM3 models. This class is also able to transform these models into meta models.

Author:
kma

Constructor & Destructor Documentation

metadone.client.functions.importer.km3.KM3Importer.KM3Importer ( )

Member Function Documentation

ConcreteModel metadone.client.functions.importer.km3.KM3Importer.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.

Parameters:
extThe extension
inputThe contents of the file
Returns:
A concrete metamodel
Exceptions:
BadPreConditionwhen the model couldn't be created
IOExceptionwhen the input couldn't be parsed

Implements metadone.client.functions.importer.Importer.

References metadone.client.functions.importer.Importer.AbstractImporter.getMetamodel(), metadone.client.parsers.km3.KM3Parser.km3(), and metadone.client.functions.importer.km3.KM3Importer.Translator.translateModel().

MetaModel metadone.client.functions.importer.km3.KM3Importer.createMetamodel ( Workspace  workspace) throws BadPreCondition [protected, virtual]
void metadone.client.functions.importer.km3.KM3Importer.promoteToMetamodel ( MetaModel  metamodel,
ConcreteModel  model,
MetaModel  newMetamodel 
) throws BadPreCondition [protected, virtual]

Initializes a metamodel from a model.

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

Implements metadone.client.functions.importer.PromotingImporter.AbstractPromotingImporter.

References metadone.client.functions.importer.km3.KM3Importer.Promoter.promote().


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