org.eclipse.gmt.umlx.ocl.util
Class UExpressionVariableExpressionSiblingAccessor

java.lang.Object
  extended by org.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
      extended by org.eclipse.gmt.umlx.ocl.util.UExpressionVariableExpressionSiblingAccessor
All Implemented Interfaces:
IParentAccessor<UExpression,UExpressionVariable,java.lang.Object>, ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>

public class UExpressionVariableExpressionSiblingAccessor
extends SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>


Method Summary
 org.eclipse.emf.ecore.resource.Resource eResource(UExpression child)
           
 java.util.List<? super org.eclipse.emf.ocl.expressions.OCLExpression> getChildren(UExpressionVariable parent)
          Return all child class children of parent.
static UExpressionVariableExpressionSiblingAccessor getInstance()
           
 java.lang.String getLabel(UExpression child)
          Get the label (name/text/whetever) of the child.
 UExpressionVariable getParent(UExpression child)
           
 java.util.List<? super org.eclipse.emf.ocl.expressions.OCLExpression> getSiblings(UExpression child)
          Return all siblings of and with the same class as child.
 boolean hasLabel()
          Test whether the child class has a label field.
 void setLabel(UExpression child, java.lang.String label)
          Set the label (name/text/whetever) of the child.
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor
basicGetParent, getBaseParentClass, getChildClass, getCoModel, getCoModelClass, getParentClass, getSiblingAccessor, removeChild, setCoModel, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UExpressionVariableExpressionSiblingAccessor getInstance()

eResource

public org.eclipse.emf.ecore.resource.Resource eResource(UExpression child)

getChildren

public java.util.List<? super org.eclipse.emf.ocl.expressions.OCLExpression> getChildren(UExpressionVariable parent)
Description copied from interface: ISiblingAccessor
Return all child class children of parent. Note that the returned list is the parenmt's list if the parent happens to maintain a suitable list, otherwise a temporary list is constructed for the return. Changes to the temporary do not affect the parent.

Specified by:
getChildren in interface ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Specified by:
getChildren in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Parameters:
parent - parent of required children
Returns:
the non-null but possibly empty list of children

getLabel

public java.lang.String getLabel(UExpression child)
Description copied from interface: ISiblingAccessor
Get the label (name/text/whetever) of the child.

Specified by:
getLabel in interface ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Overrides:
getLabel in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Parameters:
child - providing the label
Returns:
the label

getParent

public UExpressionVariable getParent(UExpression child)
Specified by:
getParent in interface IParentAccessor<UExpression,UExpressionVariable,java.lang.Object>
Specified by:
getParent in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>

getSiblings

public java.util.List<? super org.eclipse.emf.ocl.expressions.OCLExpression> getSiblings(UExpression child)
Description copied from interface: ISiblingAccessor
Return all siblings of and with the same class as child.

Specified by:
getSiblings in interface ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Specified by:
getSiblings in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Returns:
the siblings.

hasLabel

public boolean hasLabel()
Description copied from interface: ISiblingAccessor
Test whether the child class has a label field.

Specified by:
hasLabel in interface ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Overrides:
hasLabel in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Returns:
true if getLabel() and setLabel() are useable.

setLabel

public void setLabel(UExpression child,
                     java.lang.String label)
Description copied from interface: ISiblingAccessor
Set the label (name/text/whetever) of the child.

Specified by:
setLabel in interface ISiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Overrides:
setLabel in class SiblingAccessor<UExpression,UExpressionVariable,java.lang.Object>
Parameters:
child - providing the label
label - the label