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

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

public class CollectionItemImpl<C>
extends CollectionLiteralPartImpl<C>
implements CollectionItem<C>

An implementation of the model object 'Collection Item'.

The following features are implemented:


Field Summary
protected  OCLExpression<C> item
          The cached value of the 'Item' containment reference
 
Constructor Summary
protected CollectionItemImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 NotificationChain basicSetItem(OCLExpression<C> newItem, NotificationChain msgs)
           
 boolean checkItemType(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> getItem()
           
 void setItem(OCLExpression<C> newItem)
           
 
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.CollectionItem
checkItemType, setItem
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 

Field Detail

item

protected OCLExpression<C> item
The cached value of the 'Item' containment reference.

See Also:
getItem()
Constructor Detail

CollectionItemImpl

protected CollectionItemImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class CollectionLiteralPartImpl<C>

getItem

public OCLExpression<C> getItem()

Specified by:
getItem in interface CollectionItem<C>
Returns:
the value of the 'Item' containment reference.
See Also:
CollectionItem.setItem(OCLExpression), ExpressionsPackage.getCollectionItem_Item()

basicSetItem

public NotificationChain basicSetItem(OCLExpression<C> newItem,
                                      NotificationChain msgs)


setItem

public void setItem(OCLExpression<C> newItem)


checkItemType

public boolean checkItemType(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.