org.eclipse.gmt.umlx.gcore.util
Class GStickyNotesSiblingAccessor

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<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
                  extended by org.eclipse.gmt.umlx.gcore.util.GStickyNotesSiblingAccessor
All Implemented Interfaces:
IParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>, ISiblingAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>

public class GStickyNotesSiblingAccessor
extends GModelElementAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>


Method Summary
 java.util.List<? super GStickyNote> getChildren(GSheet parent)
          Return all child class children of parent.
static GStickyNotesSiblingAccessor getInstance()
           
 java.lang.String getLabel(GStickyNote child)
          Get the label (name/text/whetever) of the child.
 GSheet getParent(GStickyNote child)
           
 boolean hasLabel()
          Test whether the child class has a label field.
 void setLabel(GStickyNote child, java.lang.String label)
          Set the label (name/text/whetever) of the 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, getParentClass, getSiblingAccessor, getSiblings, removeChild, 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 GStickyNotesSiblingAccessor getInstance()

getChildren

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

getLabel

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

Specified by:
getLabel in interface ISiblingAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Overrides:
getLabel in class SingleParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Parameters:
child - providing the label
Returns:
the label

getParent

public GSheet getParent(GStickyNote child)
Specified by:
getParent in interface IParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Specified by:
getParent in class SingleParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>

hasLabel

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

Specified by:
hasLabel in interface ISiblingAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Overrides:
hasLabel in class SingleParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Returns:
true if getLabel() and setLabel() are useable.

setLabel

public void setLabel(GStickyNote 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<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Overrides:
setLabel in class SingleParentAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
Parameters:
child - providing the label
label - the label