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/datatypes/impl/EADatatypePrototypeImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/impl/EADatatypePrototypeImpl.java128
1 files changed, 75 insertions, 53 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/impl/EADatatypePrototypeImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/impl/EADatatypePrototypeImpl.java
index e4f99247705..e9bfe4080ff 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/impl/EADatatypePrototypeImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/datatypes/impl/EADatatypePrototypeImpl.java
@@ -34,19 +34,21 @@ import org.eclipse.uml2.uml.Property;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getBase_Parameter <em>Base Parameter</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getBase_Property <em>Base Property</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.datatypes.impl.EADatatypePrototypeImpl#getBase_Parameter <em>Base Parameter</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatypePrototype {
+
/**
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getType()
* @generated
* @ordered
@@ -57,6 +59,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
* The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getBase_Property()
* @generated
* @ordered
@@ -67,6 +70,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
* The cached value of the '{@link #getBase_Parameter() <em>Base Parameter</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getBase_Parameter()
* @generated
* @ordered
@@ -76,6 +80,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected EADatatypePrototypeImpl() {
@@ -85,6 +90,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Parameter basicGetBase_Parameter() {
@@ -94,6 +100,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Property basicGetBase_Property() {
@@ -103,6 +110,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EADatatype basicGetType() {
@@ -112,20 +120,24 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
- if (resolve) return getType();
- return basicGetType();
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
- if (resolve) return getBase_Property();
- return basicGetBase_Property();
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
- if (resolve) return getBase_Parameter();
- return basicGetBase_Parameter();
+ switch(featureID) {
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
+ if(resolve)
+ return getType();
+ return basicGetType();
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
+ if(resolve)
+ return getBase_Property();
+ return basicGetBase_Property();
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
+ if(resolve)
+ return getBase_Parameter();
+ return basicGetBase_Parameter();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -133,17 +145,18 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
- return type != null;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
- return base_Property != null;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
- return base_Parameter != null;
+ switch(featureID) {
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
+ return type != null;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
+ return base_Property != null;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
+ return base_Parameter != null;
}
return super.eIsSet(featureID);
}
@@ -151,20 +164,21 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
- setType((EADatatype)newValue);
- return;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
- setBase_Property((Property)newValue);
- return;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
- setBase_Parameter((Parameter)newValue);
- return;
+ switch(featureID) {
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
+ setType((EADatatype)newValue);
+ return;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
+ setBase_Property((Property)newValue);
+ return;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
+ setBase_Parameter((Parameter)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -172,6 +186,7 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -182,20 +197,21 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
- setType((EADatatype)null);
- return;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
- setBase_Property((Property)null);
- return;
- case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
- setBase_Parameter((Parameter)null);
- return;
+ switch(featureID) {
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE:
+ setType((EADatatype)null);
+ return;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY:
+ setBase_Property((Property)null);
+ return;
+ case DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER:
+ setBase_Parameter((Parameter)null);
+ return;
}
super.eUnset(featureID);
}
@@ -203,14 +219,15 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Parameter getBase_Parameter() {
- if (base_Parameter != null && base_Parameter.eIsProxy()) {
+ if(base_Parameter != null && base_Parameter.eIsProxy()) {
InternalEObject oldBase_Parameter = (InternalEObject)base_Parameter;
base_Parameter = (Parameter)eResolveProxy(oldBase_Parameter);
- if (base_Parameter != oldBase_Parameter) {
- if (eNotificationRequired())
+ if(base_Parameter != oldBase_Parameter) {
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
}
}
@@ -220,14 +237,15 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Property getBase_Property() {
- if (base_Property != null && base_Property.eIsProxy()) {
+ if(base_Property != null && base_Property.eIsProxy()) {
InternalEObject oldBase_Property = (InternalEObject)base_Property;
base_Property = (Property)eResolveProxy(oldBase_Property);
- if (base_Property != oldBase_Property) {
- if (eNotificationRequired())
+ if(base_Property != oldBase_Property) {
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY, oldBase_Property, base_Property));
}
}
@@ -237,14 +255,15 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EADatatype getType() {
- if (type != null && type.eIsProxy()) {
+ if(type != null && type.eIsProxy()) {
InternalEObject oldType = (InternalEObject)type;
type = (EADatatype)eResolveProxy(oldType);
- if (type != oldType) {
- if (eNotificationRequired())
+ if(type != oldType) {
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE, oldType, type));
}
}
@@ -254,36 +273,39 @@ public class EADatatypePrototypeImpl extends EAElementImpl implements EADatatype
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setBase_Parameter(Parameter newBase_Parameter) {
Parameter oldBase_Parameter = base_Parameter;
base_Parameter = newBase_Parameter;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setBase_Property(Property newBase_Property) {
Property oldBase_Property = base_Property;
base_Property = newBase_Property;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatatypesPackage.EA_DATATYPE_PROTOTYPE__BASE_PROPERTY, oldBase_Property, base_Property));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setType(EADatatype newType) {
EADatatype oldType = type;
type = newType;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DatatypesPackage.EA_DATATYPE_PROTOTYPE__TYPE, oldType, type));
}

Back to the top