de.tuberlin.cs.cis.ocl.model.eval
Interface Reflector

All Known Implementing Classes:
ExampleReflector, MofReflector

public interface Reflector

Provids informations about a specific classifier in the meta-level of the model. The informations are directly used to define the OCL type OclType and to access all instances of a context/classifier during the evaluation process (allInstances()).

Author:
fchabar
See Also:
OCL 1.5 Standard

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.
 

Method Detail

attributes

public java.util.Set attributes()
Reflects the set of names of the attributes of this reflector's classifier.

Returns:
the set of names of all attributes. The names are of type String.

associationEnds

public java.util.Set associationEnds()
Reflects the set of names of the navigable associationEnds of this reflector's classifier.

Returns:
the set of names of the navigable associationEnds. The names are of type String.

operations

public java.util.Set operations()
Reflects the set of names of the operations of this reflector's classifier.

Returns:
the set of names of the operations. The names are of type String.

supertypes

public java.util.Set supertypes()
Reflects the set of all direct supertypes of this reflector's classifier.

Returns:
the set of all direct supertypes. The supertypes are of type ClassifierDescriptor

allSupertypes

public java.util.Set allSupertypes()
Reflects the transitive closure of the set of all supertypes of this reflector's classifier.

Returns:
The transitive closure of the set of all supertypes. The set contains of elements of type ClassifierDescriptor.

allInstances

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

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

references

public java.util.Set references()
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.

Returns:
the set of names of the references of this reflector's classifier. The names are of type String.