de.tuberlin.cs.cis.ocl.model.mofbridge.mdr
Class UmlMDRepository

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.model.mofbridge.mdr.UmlMDRepository
All Implemented Interfaces:
MofRepository

public class UmlMDRepository
extends java.lang.Object
implements MofRepository

Author:
fchabar An MDR implementation representing the UML metamodel 1.3 and 1.4 for the MOF Bridge. The implementation is intended for test purposes only.

Field Summary
static java.lang.String REPNAME_UML_MM13
           
static int UML_V13
          Beschreibt die Version 1.3 des UML Metamodels.
static int UML_V14
          Beschreibt die Version 1.4 des UML Metamodels.
 
Constructor Summary
UmlMDRepository(int umlVersion)
           
UmlMDRepository(int umlVersion, java.lang.String modelFile)
           
 
Method Summary
 javax.jmi.model.ModelPackage getMetamodel()
          Provides access to the metamodel.
 javax.jmi.reflect.RefPackage getModel()
          Returns the extent of a model instance.
 org.netbeans.api.mdr.MDRepository getRepository()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UML_V14

public static final int UML_V14
Beschreibt die Version 1.4 des UML Metamodels.

See Also:
Constant Field Values

UML_V13

public static final int UML_V13
Beschreibt die Version 1.3 des UML Metamodels.

See Also:
Constant Field Values

REPNAME_UML_MM13

public static final java.lang.String REPNAME_UML_MM13
See Also:
Constant Field Values
Constructor Detail

UmlMDRepository

public UmlMDRepository(int umlVersion)

UmlMDRepository

public UmlMDRepository(int umlVersion,
                       java.lang.String modelFile)
Method Detail

getRepository

public org.netbeans.api.mdr.MDRepository getRepository()

getMetamodel

public javax.jmi.model.ModelPackage getMetamodel()
Description copied from interface: MofRepository
Provides access to the metamodel. The metamodel defines the type level assumed by the framework's type check of OCL constraints.
For information regarding the interface ModelPackage please refer to the documentation of JMI and your MOF Repository.

Specified by:
getMetamodel in interface MofRepository
Returns:
the metamodel describing the type level OCL constraints are validated in.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getModel

public javax.jmi.reflect.RefPackage getModel()
Description copied from interface: MofRepository
Returns the extent of a model instance. It describes the instance level and therefore the whole extent of instances that are validated to conform to specified OCL constraints. The returned model instance must be an instance of the metamodel specified through getMetamodel(). Note that thus this model instance must be included in the metamodel according to the MOF standard. For information regarding the interface RefPackage and model extents please refer to the documentation of JMI, MOF and your MOF Repository.

Specified by:
getModel in interface MofRepository
Returns:
the extent of model instances to describe the instance level validated against specified OCL constraints.