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

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.model.mofbridge.MofFeature
All Implemented Interfaces:
TypedProperty
Direct Known Subclasses:
MofAssociationEnd

public class MofFeature
extends java.lang.Object
implements TypedProperty

Describes a feature from a MOF-Model for OCL. Inherits the contract from TypedProperty.

Author:
fchabar
See Also:
TypedProperty

Constructor Summary
MofFeature(javax.jmi.model.ModelElement feature, ConceptFactory oclMapper)
          Constructs a MofFeature.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 javax.jmi.model.ModelElement getBehaviour()
          Returns the described feature.
 ClassifierDescriptor getType()
          Returns the type of this property (to be specific the type of the attribute, the return type of the operation or the type of a navigated association end).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MofFeature

public MofFeature(javax.jmi.model.ModelElement feature,
                  ConceptFactory oclMapper)
Constructs a MofFeature.

Parameters:
feature - the feature to be described. The feature must be either a Feature or an AssociationEnd.
oclMapper - defines the predefined parent of the value of the feature.
Method Detail

getType

public ClassifierDescriptor getType()
Description copied from interface: TypedProperty
Returns the type of this property (to be specific the type of the attribute, the return type of the operation or the type of a navigated association end). It is assumed that the model is self-contained. Therefore a DataTypeDescriptor of the same model is returned.

Specified by:
getType in interface TypedProperty
Returns:
the type of the property.

getBehaviour

public javax.jmi.model.ModelElement getBehaviour()
Returns the described feature.

Returns:
the described feature.

toString

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object