org.eclipse.gmt.umlx.ucore.util
Class URelationUMappingInstancesSiblingAccessor
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.ecore.accessor.SimpleENamedElementAccessor<UMappingInstance,URelation,UMapping>
org.eclipse.gmt.umlx.ucore.util.URelationUMappingInstancesSiblingAccessor
- All Implemented Interfaces:
- IParentAccessor<UMappingInstance,URelation,UMapping>, ISiblingAccessor<UMappingInstance,URelation,UMapping>
public class URelationUMappingInstancesSiblingAccessor
- extends SimpleENamedElementAccessor<UMappingInstance,URelation,UMapping>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static URelationUMappingInstancesSiblingAccessor getInstance()
getChildren
public java.util.List<? super UConstraint> getChildren(URelation 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
getCoModel
public UMapping getCoModel(UMappingInstance child)
- Specified by:
getCoModel
in interface IParentAccessor<UMappingInstance,URelation,UMapping>
- Overrides:
getCoModel
in class ParentAccessor<UMappingInstance,URelation,UMapping>
getParent
public URelation getParent(UMappingInstance child)
- Specified by:
getParent
in interface IParentAccessor<UMappingInstance,URelation,UMapping>
- Specified by:
getParent
in class SingleParentAccessor<UMappingInstance,URelation,UMapping>
setCoModel
public void setCoModel(UMappingInstance child,
UMapping coModel)
- Specified by:
setCoModel
in interface IParentAccessor<UMappingInstance,URelation,UMapping>
- Overrides:
setCoModel
in class ParentAccessor<UMappingInstance,URelation,UMapping>