|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor<C,P,CM>
public abstract class SiblingAccessor<C,P,CM>
Method Summary | ||
---|---|---|
P |
basicGetParent(C child)
|
|
java.lang.Class<P> |
getBaseParentClass()
|
|
java.lang.Class<C> |
getChildClass()
|
|
abstract java.util.List<? super C> |
getChildren(P parent)
Return all child class children of parent. |
|
CM |
getCoModel(C child)
|
|
java.lang.Class<CM> |
getCoModelClass()
|
|
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)
|
|
abstract 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 |
setCoModel(C child,
CM coModel)
|
|
void |
setLabel(C child,
java.lang.String label)
Set the label (name/text/whetever) of the child. |
|
void |
setParent(C child,
java.lang.Object parent)
|
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 |
---|
eResource |
Method Detail |
---|
public P basicGetParent(C child)
basicGetParent
in interface IParentAccessor<C,P,CM>
public java.lang.Class<P> getBaseParentClass()
getBaseParentClass
in interface IParentAccessor<C,P,CM>
public java.lang.Class<C> getChildClass()
getChildClass
in interface IParentAccessor<C,P,CM>
public abstract java.util.List<? super C> getChildren(P parent)
ISiblingAccessor
getChildren
in interface ISiblingAccessor<C,P,CM>
parent
- parent of required children
public CM getCoModel(C child)
getCoModel
in interface IParentAccessor<C,P,CM>
public java.lang.Class<CM> getCoModelClass()
getCoModelClass
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 java.lang.Class<P> getParentClass()
ISiblingAccessor
getParentClass
in interface ISiblingAccessor<C,P,CM>
public abstract java.util.List<? super C> getSiblings(C child)
ISiblingAccessor
getSiblings
in interface ISiblingAccessor<C,P,CM>
public <P1 extends P> ISiblingAccessor<? super C,? super P1,?> getSiblingAccessor(java.lang.Class<P1> parentClass)
getSiblingAccessor
in interface IParentAccessor<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 setCoModel(C child, CM coModel)
setCoModel
in interface IParentAccessor<C,P,CM>
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 parent)
setParent
in interface IParentAccessor<C,P,CM>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |