org.eclipse.gmt.umlx.ecore2.util
Class E2AssociationE2DirectedAssociationSiblingAccessor

java.lang.Object
  extended by org.eclipse.gmt.umlx.ecore.accessor.ParentAccessor<C,P,CM>
      extended by org.eclipse.gmt.umlx.ecore.accessor.SingleParentAccessor<C,P,CM>
          extended by org.eclipse.gmt.umlx.ecore.accessor.SimpleEObjectAccessor<E2DirectedAssociation,E2Association,java.lang.Object>
              extended by org.eclipse.gmt.umlx.ecore2.util.E2AssociationE2DirectedAssociationSiblingAccessor
All Implemented Interfaces:
IParentAccessor<E2DirectedAssociation,E2Association,java.lang.Object>, ISiblingAccessor<E2DirectedAssociation,E2Association,java.lang.Object>

public class E2AssociationE2DirectedAssociationSiblingAccessor
extends SimpleEObjectAccessor<E2DirectedAssociation,E2Association,java.lang.Object>


Method Summary
 java.util.List<? super E2DirectedAssociation> getChildren(E2Association parent)
          Return all child class children of parent.
static E2AssociationE2DirectedAssociationSiblingAccessor getInstance()
           
 E2Association getParent(E2DirectedAssociation child)
           
 void setParent(E2DirectedAssociation child, java.lang.Object newParent)
           
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.SimpleEObjectAccessor
eResource
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.SingleParentAccessor
basicGetParent, getLabel, getParentClass, getSiblingAccessor, getSiblings, hasLabel, removeChild, setLabel
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.ParentAccessor
getBaseParentClass, getChildClass, getCoModel, getCoModelClass, getParentAccessor, getParentAccessor, setCoModel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.ecore.accessor.IParentAccessor
getBaseParentClass, getChildClass, getCoModel, getCoModelClass, setCoModel
 

Method Detail

getInstance

public static E2AssociationE2DirectedAssociationSiblingAccessor getInstance()

getChildren

public java.util.List<? super E2DirectedAssociation> getChildren(E2Association 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.

Parameters:
parent - parent of required children
Returns:
the non-null but possibly empty list of children

getParent

public E2Association getParent(E2DirectedAssociation child)
Specified by:
getParent in interface IParentAccessor<E2DirectedAssociation,E2Association,java.lang.Object>
Specified by:
getParent in class SingleParentAccessor<E2DirectedAssociation,E2Association,java.lang.Object>

setParent

public void setParent(E2DirectedAssociation child,
                      java.lang.Object newParent)
Specified by:
setParent in interface IParentAccessor<E2DirectedAssociation,E2Association,java.lang.Object>
Overrides:
setParent in class SingleParentAccessor<E2DirectedAssociation,E2Association,java.lang.Object>