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

List of all members.

Public Member Functions

 Promoter (MetaModel metamodel, ConcreteModel concretemodel) throws BadPreCondition
MetaModel promote (MetaModel meta) throws BadPreCondition

Protected Member Functions

void findEnumerations () throws BadPreCondition
void findDataTypes () throws BadPreCondition
void createClasses (MetaModel meta) throws BadPreCondition
void createAttributes (MetaModel meta) throws BadPreCondition
void createReferences (MetaModel metamodel) throws BadPreCondition

Protected Attributes

final ConcreteModel concretemodel
final Map< String, Set< String > > enumerations = new HashMap<String, Set<String>>()
final Set< String > dataTypes = new HashSet<String>()
final Map< ConcreteObject,
MetaObject
classes = new HashMap<ConcreteObject, MetaObject>()

Private Member Functions

MetaObject createClass (MetaModel meta, ConcreteObject cla) throws BadPreCondition
java.lang.Class<?> getDataType (String name)
boolean eqClassName (String name, String...cls)
void createReference (ConcreteObject reference, MetaModel meta, String name, int card, MetaObject domain, MetaObject range) throws BadPreCondition

Private Attributes

final Set< ConcreteObjectprocessedReferences = new HashSet<ConcreteObject>()

Constructor & Destructor Documentation

metadone.client.functions.importer.km3.KM3Importer.Promoter.Promoter ( MetaModel  metamodel,
ConcreteModel  concretemodel 
) throws BadPreCondition

Member Function Documentation

void metadone.client.functions.importer.km3.KM3Importer.Promoter.createAttributes ( MetaModel  meta) throws BadPreCondition [protected]
boolean metadone.client.functions.importer.km3.KM3Importer.Promoter.eqClassName ( String  name,
String...  cls 
) [private]
java.lang.Class<?> metadone.client.functions.importer.km3.KM3Importer.Promoter.getDataType ( String  name) [private]
MetaModel metadone.client.functions.importer.km3.KM3Importer.Promoter.promote ( MetaModel  meta) throws BadPreCondition

Names are now generated in this way: for metaobjects: km3name|suffix for metaproperties: km3nameoftheclass.km3nameofthettribute|suffix for metaroles: km3reference|suffix or km3reference-km3reference|suffix The nickname of these objects is defined in the same way but without the suffix. the original references are preserved in the names of the domain and range of the metarole.

Parameters:
meta
Returns:
Exceptions:
BadPreCondition

References metadone.client.functions.importer.km3.KM3Importer.Promoter.createAttributes(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createClasses(), metadone.client.functions.importer.km3.KM3Importer.Promoter.createReferences(), metadone.client.functions.importer.km3.KM3Importer.Promoter.findDataTypes(), and metadone.client.functions.importer.km3.KM3Importer.Promoter.findEnumerations().

Referenced by metadone.client.functions.importer.km3.KM3Importer.promoteToMetamodel().


Member Data Documentation


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