org.eclipse.gmt.umlx.ucore.util
Class UTransformationUDomainsSiblingAccessor

java.lang.Object
  extended by org.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
      extended by org.eclipse.gmt.umlx.ucore.util.UTransformationUDomainsSiblingAccessor
All Implemented Interfaces:
IParentAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>, ISiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>

public class UTransformationUDomainsSiblingAccessor
extends SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>


Method Summary
 org.eclipse.emf.ecore.resource.Resource eResource(UDomain child)
           
 java.util.List<? super UDomain> getChildren(UTransformation parent)
          Return all child class children of parent.
 org.eclipse.emf.ecore.EClassifier getCoModel(UDomain child)
           
static UTransformationUDomainsSiblingAccessor getInstance()
           
 UTransformation getParent(UDomain child)
           
 java.util.List<? super UDomain> getSiblings(UDomain child)
          Return all siblings of and with the same class as child.
 boolean hasLabel()
          Test whether the child class has a label field.
 void setLabel(UDomain child, java.lang.String label)
          Set the label (name/text/whetever) of the child.
 
Methods inherited from class org.eclipse.gmt.umlx.ecore.accessor.SiblingAccessor
basicGetParent, getBaseParentClass, getChildClass, getCoModelClass, getLabel, getParentClass, getSiblingAccessor, removeChild, setCoModel, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UTransformationUDomainsSiblingAccessor getInstance()

eResource

public org.eclipse.emf.ecore.resource.Resource eResource(UDomain child)

getChildren

public java.util.List<? super UDomain> getChildren(UTransformation 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.

Specified by:
getChildren in interface ISiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Specified by:
getChildren in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Parameters:
parent - parent of required children
Returns:
the non-null but possibly empty list of children

getCoModel

public org.eclipse.emf.ecore.EClassifier getCoModel(UDomain child)
Specified by:
getCoModel in interface IParentAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Overrides:
getCoModel in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>

getParent

public UTransformation getParent(UDomain child)
Specified by:
getParent in interface IParentAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Specified by:
getParent in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>

getSiblings

public java.util.List<? super UDomain> getSiblings(UDomain child)
Description copied from interface: ISiblingAccessor
Return all siblings of and with the same class as child.

Specified by:
getSiblings in interface ISiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Specified by:
getSiblings in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Returns:
the siblings.

hasLabel

public boolean hasLabel()
Description copied from interface: ISiblingAccessor
Test whether the child class has a label field.

Specified by:
hasLabel in interface ISiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Overrides:
hasLabel in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Returns:
true if getLabel() and setLabel() are useable.

setLabel

public void setLabel(UDomain 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<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Overrides:
setLabel in class SiblingAccessor<UDomain,UTransformation,org.eclipse.emf.ecore.EClassifier>
Parameters:
child - providing the label
label - the label