org.eclipse.gmt.umlx.ecore.accessor
Class SimpleENamedElementAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
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<C,P,CM>
- All Implemented Interfaces:
- IParentAccessor<C,P,CM>, ISiblingAccessor<C,P,CM>
- Direct Known Subclasses:
- EClassOperationsSiblingAccessor, EClassStructuralFeaturesSiblingAccessor, EEnumELiteralsSiblingAccessor, EOperationParametersSiblingAccessor, EPackageClassifiersSiblingAccessor, UHelperUParametersSiblingAccessor, UHelperUSelfParameterAccessor, URelationSubrulesSiblingAccessor, URelationUClassVariableDeclarationsSiblingAccessor, URelationUExpressionVariableDeclarationsSiblingAccessor, URelationUMappingInstancesSiblingAccessor, UTransformationUHelpersSiblingAccessor, UTransformationUMappingsSiblingAccessor, UTransformationUTypedModelsSiblingAccessor
public abstract class SimpleENamedElementAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- extends SimpleEObjectAccessor<C,P,CM>
Method Summary |
java.lang.String |
getLabel(C child)
Get the label (name/text/whetever) of the child. |
boolean |
hasLabel()
Test whether the child class has a label field. |
void |
setLabel(C child,
java.lang.String label)
Set the label (name/text/whetever) of the child. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLabel
public java.lang.String getLabel(C child)
- Description copied from interface:
ISiblingAccessor
- Get the label (name/text/whetever) of the child.
- Specified by:
getLabel
in interface ISiblingAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Overrides:
getLabel
in class SingleParentAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Parameters:
child
- providing the label
- Returns:
- the label
hasLabel
public boolean hasLabel()
- Description copied from interface:
ISiblingAccessor
- Test whether the child class has a label field.
- Specified by:
hasLabel
in interface ISiblingAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Overrides:
hasLabel
in class SingleParentAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Returns:
- true if getLabel() and setLabel() are useable.
setLabel
public void setLabel(C 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<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Overrides:
setLabel
in class SingleParentAccessor<C extends org.eclipse.emf.ecore.ENamedElement,P,CM>
- Parameters:
child
- providing the labellabel
- the label