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

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.model.mofbridge.MofReflector
All Implemented Interfaces:
Reflector

public class MofReflector
extends java.lang.Object
implements Reflector

Implements the queries to the metalevel of MOF in the context of OCL. It matchs the capabilities of the OCL type OclType for a specified MOF model types.

Author:
fchabar

Constructor Summary
MofReflector(javax.jmi.reflect.RefPackage refPackage, ClassifierDescriptor type, ConceptFactory oclMapper)
          Constructs a MofReflector.
 
Method Summary
 java.util.Set allInstances()
          Reflects the set of all instances of this reflector's classifier and all its subtypes in existence.
 java.util.Set allSupertypes()
          Reflects the transitive closure of the set of all supertypes of this reflector's classifier.
 java.util.Set associationEnds()
          Reflects the set of names of the navigable associationEnds of this reflector's classifier.
 java.util.Set attributes()
          Reflects the set of names of the attributes of this reflector's classifier.
 java.util.Set operations()
          Reflects the set of names of the operations of this reflector's classifier.
 java.util.Set references()
          The set of names of the references of this type, as they are defined in the model.
 java.util.Set supertypes()
          Reflects the set of all direct supertypes of this reflector's classifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MofReflector

public MofReflector(javax.jmi.reflect.RefPackage refPackage,
                    ClassifierDescriptor type,
                    ConceptFactory oclMapper)
Constructs a MofReflector.

Parameters:
refPackage - the Extent of the model instance.
type - the model type to reflect.
oclMapper - the conceptual binding used.
Method Detail

allInstances

public java.util.Set allInstances()
Description copied from interface: Reflector
Reflects the set of all instances of this reflector's classifier and all its subtypes in existence.

Specified by:
allInstances in interface Reflector
Returns:
The set of all instances of this reflector's classifier and all its subtypes in existence. The instances must be of type InstanceDescriptor.

allSupertypes

public java.util.Set allSupertypes()
Description copied from interface: Reflector
Reflects the transitive closure of the set of all supertypes of this reflector's classifier.

Specified by:
allSupertypes in interface Reflector
Returns:
The transitive closure of the set of all supertypes. The set contains of elements of type ClassifierDescriptor.

associationEnds

public java.util.Set associationEnds()
Description copied from interface: Reflector
Reflects the set of names of the navigable associationEnds of this reflector's classifier.

Specified by:
associationEnds in interface Reflector
Returns:
the set of names of the navigable associationEnds. The names are of type String.

attributes

public java.util.Set attributes()
Description copied from interface: Reflector
Reflects the set of names of the attributes of this reflector's classifier.

Specified by:
attributes in interface Reflector
Returns:
the set of names of all attributes. The names are of type String.

operations

public java.util.Set operations()
Description copied from interface: Reflector
Reflects the set of names of the operations of this reflector's classifier.

Specified by:
operations in interface Reflector
Returns:
the set of names of the operations. The names are of type String.

references

public java.util.Set references()
Description copied from interface: Reflector
The set of names of the references of this type, as they are defined in the model. The MOF Model assumes that the signature of OclType is extended to include an operation called "references”. This is assumed to behave like the “attributes” operation, except that it returns the names of an (M3-level) Classes’ References.

Specified by:
references in interface Reflector
Returns:
the set of names of the references of this reflector's classifier. The names are of type String.

supertypes

public java.util.Set supertypes()
Description copied from interface: Reflector
Reflects the set of all direct supertypes of this reflector's classifier.

Specified by:
supertypes in interface Reflector
Returns:
the set of all direct supertypes. The supertypes are of type ClassifierDescriptor