Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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.java157
1 files changed, 98 insertions, 59 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 eeab692e75c..342dfa491ab 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
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -36,10 +36,10 @@ 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>
*
@@ -50,6 +50,7 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
* The cached value of the '{@link #getExtendedElementType() <em>Extended Element Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getExtendedElementType()
* @generated
* @ordered
@@ -60,6 +61,7 @@ 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
@@ -70,6 +72,7 @@ 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
@@ -80,6 +83,7 @@ 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
@@ -90,6 +94,7 @@ 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
@@ -99,6 +104,7 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected UserAttributeElementTypeImpl() {
@@ -108,6 +114,7 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public UserAttributeElementType basicGetExtendedElementType() {
@@ -117,21 +124,26 @@ 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();
+ 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);
}
@@ -139,19 +151,20 @@ 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);
+ 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);
}
@@ -159,25 +172,26 @@ 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;
+ 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);
}
@@ -185,6 +199,7 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -195,23 +210,24 @@ 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;
+ 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);
}
@@ -219,8 +235,10 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<UserAttributeDefinition> getAttribute() {
if (attribute == null) {
attribute = new EObjectResolvingEList<UserAttributeDefinition>(UserAttributeDefinition.class, this, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__ATTRIBUTE);
@@ -231,15 +249,18 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public org.eclipse.uml2.uml.Class getBase_Class() {
if (base_Class != null && base_Class.eIsProxy()) {
- InternalEObject oldBase_Class = (InternalEObject)base_Class;
- base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
+ InternalEObject oldBase_Class = (InternalEObject) base_Class;
+ base_Class = (org.eclipse.uml2.uml.Class) eResolveProxy(oldBase_Class);
if (base_Class != oldBase_Class) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__BASE_CLASS, oldBase_Class, base_Class));
+ }
}
}
return base_Class;
@@ -248,6 +269,7 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public org.eclipse.uml2.uml.Class basicGetBase_Class() {
@@ -257,27 +279,33 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
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
*/
+ @Override
public UserAttributeElementType getExtendedElementType() {
if (extendedElementType != null && extendedElementType.eIsProxy()) {
- InternalEObject oldExtendedElementType = (InternalEObject)extendedElementType;
- extendedElementType = (UserAttributeElementType)eResolveProxy(oldExtendedElementType);
+ InternalEObject oldExtendedElementType = (InternalEObject) extendedElementType;
+ extendedElementType = (UserAttributeElementType) eResolveProxy(oldExtendedElementType);
if (extendedElementType != oldExtendedElementType) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE__EXTENDED_ELEMENT_TYPE, oldExtendedElementType, extendedElementType));
+ }
}
}
return extendedElementType;
@@ -286,8 +314,10 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public String getValidFor() {
return validFor;
}
@@ -295,35 +325,44 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
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
*/
+ @Override
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: ");
@@ -332,4 +371,4 @@ public class UserAttributeElementTypeImpl extends EAElementImpl implements UserA
return result.toString();
}
-} //UserAttributeElementTypeImpl
+} // UserAttributeElementTypeImpl

Back to the top