org.eclipse.gmt.umlx.gcore.util
Class GDiagramParentDiagramsSiblingAccessor
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<GDiagram,GDiagramParent,java.lang.Object>
org.eclipse.gmt.umlx.gcore.util.GDiagramParentDiagramsSiblingAccessor
- All Implemented Interfaces:
- IParentAccessor<GDiagram,GDiagramParent,java.lang.Object>, ISiblingAccessor<GDiagram,GDiagramParent,java.lang.Object>
public class GDiagramParentDiagramsSiblingAccessor
- extends SimpleEObjectAccessor<GDiagram,GDiagramParent,java.lang.Object>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static GDiagramParentDiagramsSiblingAccessor getInstance()
getChildren
public java.util.List<? super GDiagram> getChildren(GDiagramParent 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(GDiagram child)
- Description copied from interface:
ISiblingAccessor
- Get the label (name/text/whetever) of the child.
- Specified by:
getLabel
in interface ISiblingAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Overrides:
getLabel
in class SingleParentAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Parameters:
child
- providing the label
- Returns:
- the label
getParent
public GDiagramParent getParent(GDiagram child)
- Specified by:
getParent
in interface IParentAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Specified by:
getParent
in class SingleParentAccessor<GDiagram,GDiagramParent,java.lang.Object>
hasLabel
public boolean hasLabel()
- Description copied from interface:
ISiblingAccessor
- Test whether the child class has a label field.
- Specified by:
hasLabel
in interface ISiblingAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Overrides:
hasLabel
in class SingleParentAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Returns:
- true if getLabel() and setLabel() are useable.
setLabel
public void setLabel(GDiagram 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<GDiagram,GDiagramParent,java.lang.Object>
- Overrides:
setLabel
in class SingleParentAccessor<GDiagram,GDiagramParent,java.lang.Object>
- Parameters:
child
- providing the labellabel
- the label