de.tuberlin.cs.cis.ocl.model.mofbridge.mdr
Class MofMDRepository
java.lang.Object
|
+--de.tuberlin.cs.cis.ocl.model.mofbridge.mdr.MofMDRepository
- All Implemented Interfaces:
- MofRepository
- public class MofMDRepository
- extends java.lang.Object
- implements MofRepository
- Author:
- fchabar
An MDR implementation representing the MOF Model for the MOF Bridge.
The implementation is intended for test purposes only.
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()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MofMDRepository
public MofMDRepository()
MofMDRepository
public MofMDRepository(java.lang.String modelFile)
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.
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.
getRepository
public org.netbeans.api.mdr.MDRepository getRepository()