org.eclipse.ocl.expressions.impl
Class CollectionRangeImpl<C>

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.ocl.expressions.impl.CollectionLiteralPartImpl<C>
          extended by org.eclipse.ocl.expressions.impl.CollectionRangeImpl<C>
All Implemented Interfaces:
CollectionLiteralPart<C>, CollectionRange<C>, TypedElement<C>, Visitable

public class CollectionRangeImpl<C>
extends CollectionLiteralPartImpl<C>
implements CollectionRange<C>

An implementation of the model object 'Collection Range'.

The following features are implemented:


Field Summary
protected  OCLExpression<C> first
          The cached value of the 'First' containment reference
protected  OCLExpression<C> 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<C> newFirst, NotificationChain msgs)
           
 NotificationChain basicSetLast(OCLExpression<C> newLast, NotificationChain msgs)
           
 boolean checkRangeType(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 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<C> getFirst()
           
 OCLExpression<C> getLast()
           
 void setFirst(OCLExpression<C> newFirst)
           
 void setLast(OCLExpression<C> newLast)
           
 
Methods inherited from class org.eclipse.ocl.expressions.impl.CollectionLiteralPartImpl
getName, getType, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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<C> first
The cached value of the 'First' containment reference.

See Also:
getFirst()

last

protected OCLExpression<C> 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<C>

getFirst

public OCLExpression<C> getFirst()

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

basicSetFirst

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


setFirst

public void setFirst(OCLExpression<C> newFirst)


getLast

public OCLExpression<C> getLast()

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

basicSetLast

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


setLast

public void setLast(OCLExpression<C> newLast)


checkRangeType

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


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<C>

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)


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