org.eclipse.gmt.umlx.gcore.util
Class GStickyNotesSiblingAccessor
java.lang.Object
org.eclipse.gmt.umlx.ecore.accessor.ParentAccessor<C,P,CM>
org.eclipse.gmt.umlx.ecore.accessor.SingleParentAccessor<C,P,CM>
org.eclipse.gmt.umlx.ecore.accessor.SimpleEObjectAccessor<C,P,CM>
org.eclipse.gmt.umlx.gcore.util.GModelElementAccessor<GStickyNote,GSheet,org.eclipse.emf.ecore.EModelElement>
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>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 labellabel
- the label