org.eclipse.ocl.ecore.impl
Class TupleLiteralPartImpl

java.lang.Object
  extended by ETypedElementImpl
      extended by org.eclipse.ocl.ecore.impl.TupleLiteralPartImpl
All Implemented Interfaces:
TupleLiteralPart<EClassifier,EStructuralFeature>, ASTNode, TypedASTNode, TypedElement<EClassifier>, Visitable

public class TupleLiteralPartImpl
extends ETypedElementImpl
implements TupleLiteralPart

An implementation of the model object 'Tuple Literal Part'.

The following features are implemented:


Field Summary
protected  EStructuralFeature attribute
          The cached value of the 'Attribute' reference
protected static int END_POSITION_EDEFAULT
          The default value of the 'End Position' attribute
protected  int endPosition
          The cached value of the 'End Position' attribute
protected static int START_POSITION_EDEFAULT
          The default value of the 'Start Position' attribute
protected  int startPosition
          The cached value of the 'Start Position' attribute
protected static int TYPE_END_POSITION_EDEFAULT
          The default value of the 'Type End Position' attribute
protected static int TYPE_START_POSITION_EDEFAULT
          The default value of the 'Type Start Position' attribute
protected  int typeEndPosition
          The cached value of the 'Type End Position' attribute
protected  int typeStartPosition
          The cached value of the 'Type Start Position' attribute
protected  OCLExpression<EClassifier> value
          The cached value of the 'Value' containment reference
 
Constructor Summary
protected TupleLiteralPartImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 EStructuralFeature basicGetAttribute()
           
 NotificationChain basicSetValue(OCLExpression<EClassifier> newValue, NotificationChain msgs)
           
 boolean checkValueType(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)
           
 EStructuralFeature getAttribute()
           
 int getEndPosition()
           
 int getStartPosition()
           
 EClassifier getType()
           
 int getTypeEndPosition()
           
 int getTypeStartPosition()
           
 OCLExpression<EClassifier> getValue()
           
 void setAttribute(EStructuralFeature newAttribute)
           
 void setEndPosition(int newEndPosition)
           
 void setStartPosition(int newStartPosition)
           
 void setType(EClassifier type)
           
 void setTypeEndPosition(int newTypeEndPosition)
           
 void setTypeStartPosition(int newTypeStartPosition)
           
 void setValue(OCLExpression<EClassifier> newValue)
           
 java.lang.String 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.expressions.TupleLiteralPart
checkValueType, setValue
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, setName
 

Field Detail

START_POSITION_EDEFAULT

protected static final int START_POSITION_EDEFAULT
The default value of the 'Start Position' attribute.

See Also:
getStartPosition(), Constant Field Values

startPosition

protected int startPosition
The cached value of the 'Start Position' attribute.

See Also:
getStartPosition()

END_POSITION_EDEFAULT

protected static final int END_POSITION_EDEFAULT
The default value of the 'End Position' attribute.

See Also:
getEndPosition(), Constant Field Values

endPosition

protected int endPosition
The cached value of the 'End Position' attribute.

See Also:
getEndPosition()

TYPE_START_POSITION_EDEFAULT

protected static final int TYPE_START_POSITION_EDEFAULT
The default value of the 'Type Start Position' attribute.

See Also:
getTypeStartPosition(), Constant Field Values

typeStartPosition

protected int typeStartPosition
The cached value of the 'Type Start Position' attribute.

See Also:
getTypeStartPosition()

TYPE_END_POSITION_EDEFAULT

protected static final int TYPE_END_POSITION_EDEFAULT
The default value of the 'Type End Position' attribute.

See Also:
getTypeEndPosition(), Constant Field Values

typeEndPosition

protected int typeEndPosition
The cached value of the 'Type End Position' attribute.

See Also:
getTypeEndPosition()

value

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

See Also:
getValue()

attribute

protected EStructuralFeature attribute
The cached value of the 'Attribute' reference.

See Also:
getAttribute()
Constructor Detail

TupleLiteralPartImpl

protected TupleLiteralPartImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getStartPosition

public int getStartPosition()

Specified by:
getStartPosition in interface ASTNode
Returns:
the value of the 'Start Position' attribute.
See Also:
ASTNode.setStartPosition(int), UtilitiesPackage.getASTNode_StartPosition()

setStartPosition

public void setStartPosition(int newStartPosition)

Specified by:
setStartPosition in interface ASTNode
Parameters:
newStartPosition - the new value of the 'Start Position' attribute.
See Also:
ASTNode.getStartPosition()

getEndPosition

public int getEndPosition()

Specified by:
getEndPosition in interface ASTNode
Returns:
the value of the 'End Position' attribute.
See Also:
ASTNode.setEndPosition(int), UtilitiesPackage.getASTNode_EndPosition()

setEndPosition

public void setEndPosition(int newEndPosition)

Specified by:
setEndPosition in interface ASTNode
Parameters:
newEndPosition - the new value of the 'End Position' attribute.
See Also:
ASTNode.getEndPosition()

getTypeStartPosition

public int getTypeStartPosition()

Specified by:
getTypeStartPosition in interface TypedASTNode
Returns:
the value of the 'Type Start Position' attribute.
See Also:
TypedASTNode.setTypeStartPosition(int), UtilitiesPackage.getTypedASTNode_TypeStartPosition()

setTypeStartPosition

public void setTypeStartPosition(int newTypeStartPosition)

Specified by:
setTypeStartPosition in interface TypedASTNode
Parameters:
newTypeStartPosition - the new value of the 'Type Start Position' attribute.
See Also:
TypedASTNode.getTypeStartPosition()

getTypeEndPosition

public int getTypeEndPosition()

Specified by:
getTypeEndPosition in interface TypedASTNode
Returns:
the value of the 'Type End Position' attribute.
See Also:
TypedASTNode.setTypeEndPosition(int), UtilitiesPackage.getTypedASTNode_TypeEndPosition()

setTypeEndPosition

public void setTypeEndPosition(int newTypeEndPosition)

Specified by:
setTypeEndPosition in interface TypedASTNode
Parameters:
newTypeEndPosition - the new value of the 'Type End Position' attribute.
See Also:
TypedASTNode.getTypeEndPosition()

getValue

public OCLExpression<EClassifier> getValue()

Specified by:
getValue in interface TupleLiteralPart<EClassifier,EStructuralFeature>
Returns:
the value of the 'Value' containment reference.
See Also:
TupleLiteralPart.setValue(OCLExpression), ExpressionsPackage.getTupleLiteralPart_Value()

basicSetValue

public NotificationChain basicSetValue(OCLExpression<EClassifier> newValue,
                                       NotificationChain msgs)


setValue

public void setValue(OCLExpression<EClassifier> newValue)


getAttribute

public EStructuralFeature getAttribute()

Specified by:
getAttribute in interface TupleLiteralPart<EClassifier,EStructuralFeature>
Returns:
the value of the 'Attribute' reference.
See Also:
TupleLiteralPart.setAttribute(Object), ExpressionsPackage.getTupleLiteralPart_Attribute()

basicGetAttribute

public EStructuralFeature basicGetAttribute()


setAttribute

public void setAttribute(EStructuralFeature newAttribute)

Specified by:
setAttribute in interface TupleLiteralPart<EClassifier,EStructuralFeature>
Parameters:
newAttribute - the new value of the 'Attribute' reference.
See Also:
TupleLiteralPart.getAttribute()

checkValueType

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


getType

public EClassifier getType()

Specified by:
getType in interface TypedElement<EClassifier>

setType

public void setType(EClassifier type)

Specified by:
setType in interface TypedElement<EClassifier>

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)


toString

public java.lang.String toString()


accept

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

Specified by:
accept in interface Visitable

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