de.tuberlin.cs.cis.ocl.model.mofbridge
Class ConceptFactory

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.model.mofbridge.ConceptFactory
Direct Known Subclasses:
UmlConceptFactory

public class ConceptFactory
extends java.lang.Object

a factory for the construction and mapping of concepts. The concepts are contained in a model. They are used to import a MOF Model into the context of OCL.

Author:
fchabar

Field Summary
static java.lang.String QN_SEPERATOR
          seperator for namespace names
 
Constructor Summary
ConceptFactory()
          Constructs a stadard ConceptFactory.
ConceptFactory(java.util.Properties properties)
          Constructs a ConceptFactory that is configured with non standard properties.
 
Method Summary
 TypedAssociation getAssociation(javax.jmi.model.AssociationEnd assocEnd)
          Mapps a MOF Association to an OCL Association.
 TypedAssociation getAssociation(javax.jmi.model.Reference reference)
          Mapps a MOF Reference to an OCL Reference.
 TypedProperty getAttribute(javax.jmi.model.Attribute attr)
          Mapps a MOF Attribute to an OCL Attribute.
 ClassifierDescriptor getClassifier(javax.jmi.model.Classifier mofClassifier)
          Mapps a MOF Classifier to an OCL Classifier.
 EnumerationTypeDescriptor getEnumerationType(javax.jmi.model.EnumerationType mofEnumType)
          Mapps a MOF Enumeration Type to an OCL Classifier.
 InstanceDescriptor getInstance(ClassifierDescriptor type, java.lang.Object object)
          Constructs a new MofInstance.
 java.lang.String getNameSeperator()
          Returns the model's qualfied name seperator.
 TypedProperty getOperation(javax.jmi.model.Operation op)
          Mapps a MOF Operation to an OCL Operation.
 Classifier getPredefinedType(javax.jmi.model.Classifier mofClassifier)
          Mapps a MOF Classifier to its predefined type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QN_SEPERATOR

public static final java.lang.String QN_SEPERATOR
seperator for namespace names

See Also:
Constant Field Values
Constructor Detail

ConceptFactory

public ConceptFactory()
Constructs a stadard ConceptFactory.


ConceptFactory

public ConceptFactory(java.util.Properties properties)
Constructs a ConceptFactory that is configured with non standard properties. Until now the properties are limited to the symbol seperating qualified names and the mapping of types of the models to predefined OCL basis types.

Method Detail

getNameSeperator

public java.lang.String getNameSeperator()
Returns the model's qualfied name seperator.

Returns:
a namespace seperator (for example ".").

getClassifier

public ClassifierDescriptor getClassifier(javax.jmi.model.Classifier mofClassifier)
Mapps a MOF Classifier to an OCL Classifier.

Returns:
the MOF Classifier bound to an OCL classifier.

getEnumerationType

public EnumerationTypeDescriptor getEnumerationType(javax.jmi.model.EnumerationType mofEnumType)
Mapps a MOF Enumeration Type to an OCL Classifier.

Returns:
the MOF Enumeration Type bound to an OCL Enumeration Type.

getAttribute

public TypedProperty getAttribute(javax.jmi.model.Attribute attr)
Mapps a MOF Attribute to an OCL Attribute.

Returns:
the MOF Attribute bound to an OCL Attribute.

getOperation

public TypedProperty getOperation(javax.jmi.model.Operation op)
Mapps a MOF Operation to an OCL Operation.

Returns:
the MOF Operation bound to an OCL Operation.

getAssociation

public TypedAssociation getAssociation(javax.jmi.model.AssociationEnd assocEnd)
Mapps a MOF Association to an OCL Association.

Returns:
the MOF Association bound to an OCL Association.

getAssociation

public TypedAssociation getAssociation(javax.jmi.model.Reference reference)
Mapps a MOF Reference to an OCL Reference.

Returns:
the MOF Reference bound to an OCL Reference.

getInstance

public InstanceDescriptor getInstance(ClassifierDescriptor type,
                                      java.lang.Object object)
Constructs a new MofInstance.

Parameters:
type - the actual runtime type of the instance.
object - the jmi-representation of the instance.
Returns:
a new MofInstance.

getPredefinedType

public Classifier getPredefinedType(javax.jmi.model.Classifier mofClassifier)
Mapps a MOF Classifier to its predefined type.

Parameters:
mofClassifier - a MOF Classifier.
Returns:
The MOF Classifier's predefined type.