diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java | 152 |
1 files changed, 63 insertions, 89 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java index 7dd2f25b22a..eeab692e75c 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeElementTypeImpl.java @@ -36,23 +36,20 @@ import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesP * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getExtendedElementType <em>Extended Element - * Type</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getAttribute <em>Attribute</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getBase_Class <em>Base Class</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getValidFor <em>Valid For</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getExtendedElementType <em>Extended Element Type</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getAttribute <em>Attribute</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getBase_Class <em>Base Class</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeElementTypeImpl#getValidFor <em>Valid For</em>}</li> * </ul> * </p> - * + * * @generated */ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserAttributeElementType { - /** * The cached value of the '{@link #getExtendedElementType() <em>Extended Element Type</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getExtendedElementType() * @generated * @ordered @@ -63,7 +60,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA * The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getAttribute() * @generated * @ordered @@ -74,7 +70,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getBase_Class() * @generated * @ordered @@ -85,7 +80,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA * The default value of the '{@link #getValidFor() <em>Valid For</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getValidFor() * @generated * @ordered @@ -96,7 +90,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA * The cached value of the '{@link #getValidFor() <em>Valid For</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getValidFor() * @generated * @ordered @@ -106,7 +99,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ protected UserAttributeElementTypeImpl() { @@ -116,7 +108,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public UserAttributeElementType basicGetExtendedElementType() { @@ -126,24 +117,21 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch(featureID) { - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: - if(resolve) - return getExtendedElementType(); - return basicGetExtendedElementType(); - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: - return getAttribute(); - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: - if(resolve) - return getBase_Class(); - return basicGetBase_Class(); - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: - return getValidFor(); + switch (featureID) { + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: + if (resolve) return getExtendedElementType(); + return basicGetExtendedElementType(); + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: + return getAttribute(); + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: + if (resolve) return getBase_Class(); + return basicGetBase_Class(); + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: + return getValidFor(); } return super.eGet(featureID, resolve, coreType); } @@ -151,20 +139,19 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { - switch(featureID) { - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: - return extendedElementType != null; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: - return attribute != null && !attribute.isEmpty(); - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: - return base_Class != null; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: - return VALID_FOR_EDEFAULT == null ? validFor != null : !VALID_FOR_EDEFAULT.equals(validFor); + switch (featureID) { + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: + return extendedElementType != null; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: + return attribute != null && !attribute.isEmpty(); + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: + return base_Class != null; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: + return VALID_FOR_EDEFAULT == null ? validFor != null : !VALID_FOR_EDEFAULT.equals(validFor); } return super.eIsSet(featureID); } @@ -172,26 +159,25 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch(featureID) { - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: - setExtendedElementType((UserAttributeElementType)newValue); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: - getAttribute().clear(); - getAttribute().addAll((Collection<? extends UserAttributeDefinition>)newValue); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: - setBase_Class((org.eclipse.uml2.uml.Class)newValue); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: - setValidFor((String)newValue); - return; + switch (featureID) { + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: + setExtendedElementType((UserAttributeElementType)newValue); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: + getAttribute().clear(); + getAttribute().addAll((Collection<? extends UserAttributeDefinition>)newValue); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)newValue); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: + setValidFor((String)newValue); + return; } super.eSet(featureID, newValue); } @@ -199,7 +185,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override @@ -210,24 +195,23 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { - switch(featureID) { - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: - setExtendedElementType((UserAttributeElementType)null); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: - getAttribute().clear(); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: - setBase_Class((org.eclipse.uml2.uml.Class)null); - return; - case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: - setValidFor(VALID_FOR_EDEFAULT); - return; + switch (featureID) { + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE: + setExtendedElementType((UserAttributeElementType)null); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE: + getAttribute().clear(); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)null); + return; + case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR: + setValidFor(VALID_FOR_EDEFAULT); + return; } super.eUnset(featureID); } @@ -235,11 +219,10 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public EList<UserAttributeDefinition> getAttribute() { - if(attribute == null) { + if (attribute == null) { attribute = new EObjectResolvingEList<UserAttributeDefinition>(UserAttributeDefinition.class, this, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE); } return attribute; @@ -248,15 +231,14 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public org.eclipse.uml2.uml.Class getBase_Class() { - if(base_Class != null && base_Class.eIsProxy()) { + if (base_Class != null && base_Class.eIsProxy()) { InternalEObject oldBase_Class = (InternalEObject)base_Class; base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class); - if(base_Class != oldBase_Class) { - if(eNotificationRequired()) + if (base_Class != oldBase_Class) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS, oldBase_Class, base_Class)); } } @@ -266,7 +248,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public org.eclipse.uml2.uml.Class basicGetBase_Class() { @@ -276,28 +257,26 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) { org.eclipse.uml2.uml.Class oldBase_Class = base_Class; base_Class = newBase_Class; - if(eNotificationRequired()) + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS, oldBase_Class, base_Class)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public UserAttributeElementType getExtendedElementType() { - if(extendedElementType != null && extendedElementType.eIsProxy()) { + if (extendedElementType != null && extendedElementType.eIsProxy()) { InternalEObject oldExtendedElementType = (InternalEObject)extendedElementType; extendedElementType = (UserAttributeElementType)eResolveProxy(oldExtendedElementType); - if(extendedElementType != oldExtendedElementType) { - if(eNotificationRequired()) + if (extendedElementType != oldExtendedElementType) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE, oldExtendedElementType, extendedElementType)); } } @@ -307,7 +286,6 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public String getValidFor() { @@ -317,39 +295,35 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public void setExtendedElementType(UserAttributeElementType newExtendedElementType) { UserAttributeElementType oldExtendedElementType = extendedElementType; extendedElementType = newExtendedElementType; - if(eNotificationRequired()) + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE, oldExtendedElementType, extendedElementType)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public void setValidFor(String newValidFor) { String oldValidFor = validFor; validFor = newValidFor; - if(eNotificationRequired()) + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__VALID_FOR, oldValidFor, validFor)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public String toString() { - if(eIsProxy()) - return super.toString(); + if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (validFor: "); |