org.eclipse.ocl.ecore.impl
Class CollectionRangeImpl

java.lang.Object
  extended by ETypedElementImpl
      extended by org.eclipse.ocl.ecore.impl.CollectionLiteralPartImpl
          extended by org.eclipse.ocl.ecore.impl.CollectionRangeImpl
All Implemented Interfaces:
CollectionLiteralPart<EClassifier>, CollectionRange<EClassifier>, TypedElement<EClassifier>, Visitable

public class CollectionRangeImpl
extends CollectionLiteralPartImpl
implements CollectionRange

An implementation of the model object 'Collection Range'.

The following features are implemented:


Field Summary
protected  OCLExpression<EClassifier> first
          The cached value of the 'First' containment reference
protected  OCLExpression<EClassifier> last
          The cached value of the 'Last' containment reference
 
Constructor Summary
protected CollectionRangeImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 NotificationChain basicSetFirst(OCLExpression<EClassifier> newFirst, NotificationChain msgs)
           
 NotificationChain basicSetLast(OCLExpression<EClassifier> newLast, NotificationChain msgs)
           
 boolean checkRangeType(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 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)
           
 OCLExpression<EClassifier> getFirst()
           
 OCLExpression<EClassifier> getLast()
           
 void setFirst(OCLExpression<EClassifier> newFirst)
           
 void setLast(OCLExpression<EClassifier> newLast)
           
 
Methods inherited from class org.eclipse.ocl.ecore.impl.CollectionLiteralPartImpl
getType, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 
Methods inherited from interface org.eclipse.ocl.expressions.CollectionRange
checkRangeType, setFirst, setLast
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 

Field Detail

first

protected OCLExpression<EClassifier> first
The cached value of the 'First' containment reference.

See Also:
getFirst()

last

protected OCLExpression<EClassifier> last
The cached value of the 'Last' containment reference.

See Also:
getLast()
Constructor Detail

CollectionRangeImpl

protected CollectionRangeImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class CollectionLiteralPartImpl

getFirst

public OCLExpression<EClassifier> getFirst()

Specified by:
getFirst in interface CollectionRange<EClassifier>
Returns:
the value of the 'First' containment reference.
See Also:
CollectionRange.setFirst(OCLExpression), ExpressionsPackage.getCollectionRange_First()

basicSetFirst

public NotificationChain basicSetFirst(OCLExpression<EClassifier> newFirst,
                                       NotificationChain msgs)


setFirst

public void setFirst(OCLExpression<EClassifier> newFirst)


getLast

public OCLExpression<EClassifier> getLast()

Specified by:
getLast in interface CollectionRange<EClassifier>
Returns:
the value of the 'Last' containment reference.
See Also:
CollectionRange.setLast(OCLExpression), ExpressionsPackage.getCollectionRange_Last()

basicSetLast

public NotificationChain basicSetLast(OCLExpression<EClassifier> newLast,
                                      NotificationChain msgs)


setLast

public void setLast(OCLExpression<EClassifier> newLast)


checkRangeType

public boolean checkRangeType(DiagnosticChain diagnostics,
                              java.util.Map<java.lang.Object,java.lang.Object> context)


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)


eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)


eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)


accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)
Description copied from class: CollectionLiteralPartImpl

Specified by:
accept in interface Visitable
Overrides:
accept in class CollectionLiteralPartImpl

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