org.eclipse.ocl.uml.impl
Class VariableImpl

java.lang.Object
  extended by TypedElementImpl
      extended by org.eclipse.ocl.uml.impl.VariableImpl
All Implemented Interfaces:
Variable<Classifier,Parameter>, ASTNode, TypedASTNode, TypedElement<Classifier>, Visitable

public class VariableImpl
extends TypedElementImpl
implements Variable

An implementation of the model object 'Variable'.

The following features are implemented:


Field Summary
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  OCLExpression<Classifier> initExpression
          The cached value of the 'Init Expression' containment reference
protected  Parameter representedParameter
          The cached value of the 'Represented Parameter' reference
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
 
Constructor Summary
protected VariableImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 Parameter basicGetRepresentedParameter()
           
 NotificationChain basicSetInitExpression(OCLExpression<Classifier> newInitExpression, NotificationChain msgs)
           
 boolean checkInitType(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)
           
 int getEndPosition()
           
 OCLExpression<Classifier> getInitExpression()
           
 Parameter getRepresentedParameter()
           
 int getStartPosition()
           
 Classifier getType()
           
 int getTypeEndPosition()
           
 int getTypeStartPosition()
           
 void setEndPosition(int newEndPosition)
           
 void setInitExpression(OCLExpression<Classifier> newInitExpression)
           
 void setRepresentedParameter(Parameter newRepresentedParameter)
           
 void setStartPosition(int newStartPosition)
           
 void setType(Classifier type)
           
 void setTypeEndPosition(int newTypeEndPosition)
           
 void setTypeStartPosition(int newTypeStartPosition)
           
 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.Variable
checkInitType, setInitExpression
 
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()

initExpression

protected OCLExpression<Classifier> initExpression
The cached value of the 'Init Expression' containment reference.

See Also:
getInitExpression()

representedParameter

protected Parameter representedParameter
The cached value of the 'Represented Parameter' reference.

See Also:
getRepresentedParameter()
Constructor Detail

VariableImpl

protected VariableImpl()

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()

getInitExpression

public OCLExpression<Classifier> getInitExpression()

Specified by:
getInitExpression in interface Variable<Classifier,Parameter>
Returns:
the value of the 'Init Expression' containment reference.
See Also:
Variable.setInitExpression(OCLExpression), ExpressionsPackage.getVariable_InitExpression()

basicSetInitExpression

public NotificationChain basicSetInitExpression(OCLExpression<Classifier> newInitExpression,
                                                NotificationChain msgs)


setInitExpression

public void setInitExpression(OCLExpression<Classifier> newInitExpression)


getRepresentedParameter

public Parameter getRepresentedParameter()

Specified by:
getRepresentedParameter in interface Variable<Classifier,Parameter>
Returns:
the value of the 'Represented Parameter' reference.
See Also:
Variable.setRepresentedParameter(Object), ExpressionsPackage.getVariable_RepresentedParameter()

basicGetRepresentedParameter

public Parameter basicGetRepresentedParameter()


setRepresentedParameter

public void setRepresentedParameter(Parameter newRepresentedParameter)

Specified by:
setRepresentedParameter in interface Variable<Classifier,Parameter>
Parameters:
newRepresentedParameter - the new value of the 'Represented Parameter' reference.
See Also:
Variable.getRepresentedParameter()

accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)

Specified by:
accept in interface Visitable

checkInitType

public boolean checkInitType(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)


toString

public java.lang.String toString()


getType

public Classifier getType()
Description copied from interface: TypedElement

Specified by:
getType in interface TypedElement<Classifier>

setType

public void setType(Classifier type)
Description copied from interface: TypedElement

Specified by:
setType in interface TypedElement<Classifier>

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