|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.ecore.accessor.ParentAccessor<C,P,CM>
org.eclipse.gmt.umlx.ecore.accessor.SingleParentAccessor<C,P,CM>
public abstract class SingleParentAccessor<C,P,CM>
Method Summary | ||
---|---|---|
P |
basicGetParent(C child)
|
|
java.lang.String |
getLabel(C child)
Get the label (name/text/whetever) of the child. |
|
abstract P |
getParent(C child)
|
|
java.lang.Class<P> |
getParentClass()
Return the parent class |
|
|
getSiblingAccessor(java.lang.Class<P1> parentClass)
|
|
java.util.List<? super C> |
getSiblings(C child)
Return all siblings of and with the same class as child. |
|
boolean |
hasLabel()
Test whether the child class has a label field. |
|
int |
removeChild(C child,
P parent)
Remove the child from the parent returning the non-negative index at which the removal was made, or -ve if not found. |
|
void |
setLabel(C child,
java.lang.String label)
Set the label (name/text/whetever) of the child. |
|
void |
setParent(C child,
java.lang.Object newParent)
|
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.ISiblingAccessor |
---|
getChildren |
Methods inherited from interface org.eclipse.gmt.umlx.ecore.accessor.IParentAccessor |
---|
eResource, getBaseParentClass, getChildClass, getCoModel, getCoModelClass, setCoModel |
Method Detail |
---|
public final P basicGetParent(C child)
basicGetParent
in interface IParentAccessor<C,P,CM>
public java.lang.String getLabel(C child)
ISiblingAccessor
getLabel
in interface ISiblingAccessor<C,P,CM>
child
- providing the label
public abstract P getParent(C child)
getParent
in interface IParentAccessor<C,P,CM>
public final java.lang.Class<P> getParentClass()
ISiblingAccessor
getParentClass
in interface ISiblingAccessor<C,P,CM>
public final <P1 extends P> ISiblingAccessor<? super C,? super P1,?> getSiblingAccessor(java.lang.Class<P1> parentClass)
getSiblingAccessor
in interface IParentAccessor<C,P,CM>
getSiblingAccessor
in class ParentAccessor<C,P,CM>
public final java.util.List<? super C> getSiblings(C child)
ISiblingAccessor
getSiblings
in interface ISiblingAccessor<C,P,CM>
public boolean hasLabel()
ISiblingAccessor
hasLabel
in interface ISiblingAccessor<C,P,CM>
public int removeChild(C child, P parent)
ISiblingAccessor
removeChild
in interface ISiblingAccessor<C,P,CM>
child
- child to removeparent
- expected parent of child
public void setLabel(C child, java.lang.String label)
ISiblingAccessor
setLabel
in interface ISiblingAccessor<C,P,CM>
child
- providing the labellabel
- the labelpublic void setParent(C child, java.lang.Object newParent)
setParent
in interface IParentAccessor<C,P,CM>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |