org.eclipse.ocl.ecore.impl
Class ConstraintImpl

java.lang.Object
  extended by ENamedElementImpl
      extended by org.eclipse.ocl.ecore.impl.ConstraintImpl
All Implemented Interfaces:
Constraint

public class ConstraintImpl
extends ENamedElementImpl
implements Constraint

An implementation of the model object 'Constraint'.

The following features are implemented:


Field Summary
protected   constrainedElements
          The cached value of the 'Constrained Elements' reference list
protected  ExpressionInOCL<EClassifier,EParameter> specification
          The cached value of the 'Specification' containment reference
protected  java.lang.String stereotype
          The cached value of the 'Stereotype' attribute
protected static java.lang.String STEREOTYPE_EDEFAULT
          The default value of the 'Stereotype' attribute
 
Constructor Summary
protected ConstraintImpl()
           
 
Method Summary
 NotificationChain basicSetSpecification(ExpressionInOCL<EClassifier,EParameter> newSpecification, NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
  getConstrainedElements()
           
 ExpressionInOCL<EClassifier,EParameter> getSpecification()
           
 java.lang.String getStereotype()
           
 void setSpecification(ExpressionInOCL<EClassifier,EParameter> newSpecification)
           
 void setStereotype(java.lang.String newStereotype)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

specification

protected ExpressionInOCL<EClassifier,EParameter> specification
The cached value of the 'Specification' containment reference.

See Also:
getSpecification()

constrainedElements

protected  constrainedElements
The cached value of the 'Constrained Elements' reference list.

See Also:
getConstrainedElements()

STEREOTYPE_EDEFAULT

protected static final java.lang.String STEREOTYPE_EDEFAULT
The default value of the 'Stereotype' attribute.

See Also:
getStereotype()

stereotype

protected java.lang.String stereotype
The cached value of the 'Stereotype' attribute.

See Also:
getStereotype()
Constructor Detail

ConstraintImpl

protected ConstraintImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getSpecification

public ExpressionInOCL<EClassifier,EParameter> getSpecification()

Specified by:
getSpecification in interface Constraint
Returns:
the value of the 'Specification' containment reference.
See Also:
Constraint.setSpecification(ExpressionInOCL), EcorePackage.getConstraint_Specification()

basicSetSpecification

public NotificationChain basicSetSpecification(ExpressionInOCL<EClassifier,EParameter> newSpecification,
                                               NotificationChain msgs)


setSpecification

public void setSpecification(ExpressionInOCL<EClassifier,EParameter> newSpecification)

Specified by:
setSpecification in interface Constraint
Parameters:
newSpecification - the new value of the 'Specification' containment reference.
See Also:
Constraint.getSpecification()

getConstrainedElements

public  getConstrainedElements()

Specified by:
getConstrainedElements in interface Constraint
Returns:
the value of the 'Constrained Elements' reference list.
See Also:
EcorePackage.getConstraint_ConstrainedElements()

getStereotype

public java.lang.String getStereotype()

Specified by:
getStereotype in interface Constraint
Returns:
the value of the 'Stereotype' attribute.
See Also:
Constraint.setStereotype(String), EcorePackage.getConstraint_Stereotype()

setStereotype

public void setStereotype(java.lang.String newStereotype)

Specified by:
setStereotype in interface Constraint
Parameters:
newStereotype - the new value of the 'Stereotype' attribute.
See Also:
Constraint.getStereotype()

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)


eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)


eSet

public void eSet(int featureID,
                 java.lang.Object newValue)


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


toString

public java.lang.String toString()


Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.