org.eclipse.gmt.umlx.mm.util
Class GEnumLiteralsSiblingAccessor

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<C,P,CM>
              extended by org.eclipse.gmt.umlx.gcore.util.GModelElementAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>
                  extended by org.eclipse.gmt.umlx.mm.util.GEnumLiteralsSiblingAccessor
All Implemented Interfaces:
IParentAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>, ISiblingAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>

public class GEnumLiteralsSiblingAccessor
extends GModelElementAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>


Method Summary
 java.util.List<? super GEnumLiteral> getChildren(GEnum parent)
          Return all child class children of parent.
static GEnumLiteralsSiblingAccessor getInstance()
           
 GEnum getParent(GEnumLiteral child)
           
 
Methods inherited from class org.eclipse.gmt.umlx.gcore.util.GModelElementAccessor
getCoModel, setCoModel
 
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, setParent
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.ParentAccessor
getBaseParentClass, getChildClass, getCoModelClass, getParentAccessor, getParentAccessor
 
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, getCoModelClass
 

Method Detail

getInstance

public static GEnumLiteralsSiblingAccessor getInstance()

getChildren

public java.util.List<? super GEnumLiteral> getChildren(GEnum 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 GEnum getParent(GEnumLiteral child)
Specified by:
getParent in interface IParentAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>
Specified by:
getParent in class SingleParentAccessor<GEnumLiteral,GEnum,org.eclipse.emf.ecore.EEnumLiteral>