|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.ecore.accessor.TreeAccessor
public class TreeAccessor
Constructor Summary | |
---|---|
TreeAccessor()
|
Method Summary | ||
---|---|---|
static
|
addSibling(int index,
C child,
P parent)
|
|
static
|
basicGetParent(C object)
Return the parent of a child object. |
|
static
|
eResource(T object)
Return the containing resource for object. |
|
static
|
getCoModel(C child)
|
|
static
|
getCoModel(C child,
java.lang.Class<CM> coModelClass)
|
|
static
|
getLabel(C child)
Return the label for child. |
|
static
|
getParent(C object)
Return the parent of a child object. |
|
static
|
getParent(C object,
java.lang.Class<P> parentClass)
|
|
static
|
getParentAccessor(C child)
Return the parent adapter for child and its current parent. |
|
static
|
getParentAccessor(java.lang.Class<C> childClass)
Return the parent adapter for a given child class. |
|
static
|
getSiblingAccessor(C child)
Return the sibling adapter for child and its current parent. |
|
static
|
getSiblingAccessor(C child,
java.lang.Class<P> parentClass)
|
|
static
|
getSiblingAccessor(java.lang.Class<C> childClass,
java.lang.Class<P> parentClass)
|
|
static
|
getSiblingAccessor(C child,
P parent)
Return the sibling adapter for child and not necessarily current parent. |
|
static
|
getSiblingAccessor0(IParentAccessor<? super C,SomeP,?> parentAccessor,
java.lang.Class<P> parentClass)
|
|
static
|
getSiblings(C child)
|
|
static
|
getSiblings(java.lang.Class<C> childClass,
P parent)
|
|
static
|
getSiblings(C child,
P parent)
|
|
static
|
newName(java.lang.String prefix,
java.lang.Class<C> childClass,
P parent)
Generate a new name for a childClass child of parent using a given naming prefix. |
|
static
|
removeSibling(C child,
P parent)
|
|
static
|
setCoModel(C child,
CM coModel,
java.lang.Class<CM> coModelClass)
|
|
static
|
setParent(C child,
P parent)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeAccessor()
Method Detail |
---|
public static <C,P> void addSibling(int index, C child, P parent)
public static <C,SomeP> SomeP basicGetParent(C object)
C
- Class of child objectSomeP
- Unknown class of parent objectobject
-
public static <T> org.eclipse.emf.ecore.resource.Resource eResource(T object)
T
- Class of objectobject
-
public static <C> java.lang.Object getCoModel(C child)
public static <C,CM> CM getCoModel(C child, java.lang.Class<CM> coModelClass)
public static <C> java.lang.String getLabel(C child)
C
- Class of the childchild
- The child
public static <C> java.lang.Object getParent(C object)
C
- Class of child objectSomeP
- Unknown class of parent objectobject
-
public static <C,P> P getParent(C object, java.lang.Class<P> parentClass)
public static <C> IParentAccessor<? super C,?,?> getParentAccessor(C child)
C
- Class of the childchild
- The child
public static <C> IParentAccessor<? super C,?,?> getParentAccessor(java.lang.Class<C> childClass)
C
- Class of the childchildClass
- Class of the child
public static <C> ISiblingAccessor<? super C,?,?> getSiblingAccessor(C child)
C
- Class of the childchild
- The child
public static <C,SomeP,P extends SomeP> ISiblingAccessor<? super C,? super P,?> getSiblingAccessor(C child, P parent)
C
- Class of the childP
- Class of the parentchild
- The childparent
- The putative parent
public static <C,SomeP,P extends SomeP> ISiblingAccessor<? super C,? super P,?> getSiblingAccessor0(IParentAccessor<? super C,SomeP,?> parentAccessor, java.lang.Class<P> parentClass)
public static <C,P> ISiblingAccessor<? super C,? super P,?> getSiblingAccessor(C child, java.lang.Class<P> parentClass)
public static <C,P> ISiblingAccessor<? super C,? super P,?> getSiblingAccessor(java.lang.Class<C> childClass, java.lang.Class<P> parentClass)
public static <C> java.util.List<? super C> getSiblings(C child)
public static <C,P> java.util.List<? super C> getSiblings(C child, P parent)
public static <C,P> java.util.List<? super C> getSiblings(java.lang.Class<C> childClass, P parent)
public static <C,P> java.lang.String newName(java.lang.String prefix, java.lang.Class<C> childClass, P parent)
prefix
- prefix for generated namechildClass
- class identifying distinct name spaceparent
- context in which names should be distinct
public static <C,P> int removeSibling(C child, P parent)
public static <C,CM> void setCoModel(C child, CM coModel, java.lang.Class<CM> coModelClass)
public static <C,P> void setParent(C child, P parent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |