org.eclipse.gmt.umlx.ucore.util
Class URelationUAttributeVariablesSiblingAccessor

java.lang.Object
  extended by org.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
      extended by org.eclipse.gmt.umlx.ucore.util.URelationUAttributeVariablesSiblingAccessor
All Implemented Interfaces:
IParentAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>, ISiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>

public class URelationUAttributeVariablesSiblingAccessor
extends SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>


Method Summary
 org.eclipse.emf.ecore.resource.Resource eResource(UAttributeVariable child)
           
 java.util.List<? super UAttributeVariable> getChildren(URelation parent)
          Return all child class children of parent.
 org.eclipse.emf.ecore.EAttribute getCoModel(UAttributeVariable child)
           
static URelationUAttributeVariablesSiblingAccessor getInstance()
           
 java.lang.String getLabel(UAttributeVariable child)
          Get the label (name/text/whetever) of the child.
 URelation getParent(UAttributeVariable child)
           
 java.util.List<? super UAttributeVariable> getSiblings(UAttributeVariable 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(UAttributeVariable 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, 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 URelationUAttributeVariablesSiblingAccessor getInstance()

eResource

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

getChildren

public java.util.List<? super UAttributeVariable> getChildren(URelation 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<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Specified by:
getChildren in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Parameters:
parent - parent of required children
Returns:
the non-null but possibly empty list of children

getCoModel

public org.eclipse.emf.ecore.EAttribute getCoModel(UAttributeVariable child)
Specified by:
getCoModel in interface IParentAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Overrides:
getCoModel in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>

getLabel

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

Specified by:
getLabel in interface ISiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Overrides:
getLabel in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Parameters:
child - providing the label
Returns:
the label

getParent

public URelation getParent(UAttributeVariable child)
Specified by:
getParent in interface IParentAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Specified by:
getParent in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>

getSiblings

public java.util.List<? super UAttributeVariable> getSiblings(UAttributeVariable child)
Description copied from interface: ISiblingAccessor
Return all siblings of and with the same class as child.

Specified by:
getSiblings in interface ISiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Specified by:
getSiblings in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
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<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Overrides:
hasLabel in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Returns:
true if getLabel() and setLabel() are useable.

setLabel

public void setLabel(UAttributeVariable 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<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Overrides:
setLabel in class SiblingAccessor<UAttributeVariable,URelation,org.eclipse.emf.ecore.EAttribute>
Parameters:
child - providing the label
label - the label