diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java | 224 |
1 files changed, 125 insertions, 99 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java index f81a6d7dffe..edc44794e74 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/ErrorModelPrototypeImpl.java @@ -43,16 +43,16 @@ import org.eclipse.uml2.uml.util.UMLUtil; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getBase_Property <em>Base Property</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getTarget <em>Target</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getFunctionTarget <em>Function Target</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getHwTarget <em>Hw Target</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getFunctionTarget_path <em>Function Target path</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getHwTarget_path <em>Hw Target path</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getBase_Property <em>Base Property</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getTarget <em>Target</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getFunctionTarget <em>Function Target</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getHwTarget <em>Hw Target</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getFunctionTarget_path <em>Function Target path</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.ErrorModelPrototypeImpl#getHwTarget_path <em>Hw Target path</em>}</li> * </ul> * </p> - * + * * @generated */ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModelPrototype { @@ -61,6 +61,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getBase_Property() * @generated * @ordered @@ -71,6 +72,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. * <!-- begin-user-doc * --> <!-- end-user-doc --> + * * @see #getTarget() * @generated * @ordered @@ -80,6 +82,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * The cached value of the '{@link #getFunctionTarget() <em>Function Target</em>}' reference list. * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getFunctionTarget() * @generated * @ordered @@ -100,6 +103,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel * The cached value of the '{@link #getFunctionTarget_path() <em>Function Target path</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getFunctionTarget_path() * @generated * @ordered @@ -110,6 +114,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel * The cached value of the '{@link #getHwTarget_path() <em>Hw Target path</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getHwTarget_path() * @generated * @ordered @@ -118,6 +123,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected ErrorModelPrototypeImpl() { @@ -126,6 +132,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public NamedElement basicGetTarget() { @@ -146,7 +153,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel Type basicType = getBase_Property().getType(); if(basicType != null) { - type=(ErrorModelType)UMLUtil.getStereotypeApplication(basicType, ErrorModelType.class); + type = (ErrorModelType)UMLUtil.getStereotypeApplication(basicType, ErrorModelType.class); } } @@ -155,106 +162,114 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: - if (resolve) return getBase_Property(); - return basicGetBase_Property(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TYPE: - if (resolve) return getType(); - return basicGetType(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: - if (resolve) return getTarget(); - return basicGetTarget(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: - return getFunctionTarget(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: - return getHwTarget(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: - return getFunctionTarget_path(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: - return getHwTarget_path(); + switch(featureID) { + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: + if(resolve) + return getBase_Property(); + return basicGetBase_Property(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TYPE: + if(resolve) + return getType(); + return basicGetType(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: + if(resolve) + return getTarget(); + return basicGetTarget(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: + return getFunctionTarget(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: + return getHwTarget(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: + return getFunctionTarget_path(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: + return getHwTarget_path(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: - return ((InternalEList<?>)getHwTarget_path()).basicRemove(otherEnd, msgs); + switch(featureID) { + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: + return ((InternalEList<?>)getHwTarget_path()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: - return base_Property != null; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TYPE: - return basicGetType() != null; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: - return target != null; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: - return functionTarget != null && !functionTarget.isEmpty(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: - return hwTarget != null && !hwTarget.isEmpty(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: - return functionTarget_path != null && !functionTarget_path.isEmpty(); - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: - return hwTarget_path != null && !hwTarget_path.isEmpty(); + switch(featureID) { + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: + return base_Property != null; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TYPE: + return basicGetType() != null; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: + return target != null; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: + return functionTarget != null && !functionTarget.isEmpty(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: + return hwTarget != null && !hwTarget.isEmpty(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: + return functionTarget_path != null && !functionTarget_path.isEmpty(); + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: + return hwTarget_path != null && !hwTarget_path.isEmpty(); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: - setBase_Property((Property)newValue); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: - setTarget((NamedElement)newValue); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: - getFunctionTarget().clear(); - getFunctionTarget().addAll((Collection<? extends FunctionPrototype>)newValue); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: - getHwTarget().clear(); - getHwTarget().addAll((Collection<? extends HardwareComponentPrototype>)newValue); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: - getFunctionTarget_path().clear(); - getFunctionTarget_path().addAll((Collection<? extends FunctionPrototype>)newValue); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: - getHwTarget_path().clear(); - getHwTarget_path().addAll((Collection<? extends HardwareComponentPrototype>)newValue); - return; + switch(featureID) { + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: + setBase_Property((Property)newValue); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: + setTarget((NamedElement)newValue); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: + getFunctionTarget().clear(); + getFunctionTarget().addAll((Collection<? extends FunctionPrototype>)newValue); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: + getHwTarget().clear(); + getHwTarget().addAll((Collection<? extends HardwareComponentPrototype>)newValue); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: + getFunctionTarget_path().clear(); + getFunctionTarget_path().addAll((Collection<? extends FunctionPrototype>)newValue); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: + getHwTarget_path().clear(); + getHwTarget_path().addAll((Collection<? extends HardwareComponentPrototype>)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -265,14 +280,15 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- 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, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY, oldBase_Property, base_Property)); } } @@ -282,6 +298,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Property basicGetBase_Property() { @@ -291,50 +308,53 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- 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, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY, oldBase_Property, base_Property)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: - setBase_Property((Property)null); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: - setTarget((NamedElement)null); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: - getFunctionTarget().clear(); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: - getHwTarget().clear(); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: - getFunctionTarget_path().clear(); - return; - case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: - getHwTarget_path().clear(); - return; + switch(featureID) { + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__BASE_PROPERTY: + setBase_Property((Property)null); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET: + setTarget((NamedElement)null); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET: + getFunctionTarget().clear(); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET: + getHwTarget().clear(); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH: + getFunctionTarget_path().clear(); + return; + case ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH: + getHwTarget_path().clear(); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public EList<FunctionPrototype> getFunctionTarget() { - if (functionTarget == null) { + if(functionTarget == null) { functionTarget = new EObjectResolvingEList<FunctionPrototype>(FunctionPrototype.class, this, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET); } return functionTarget; @@ -342,10 +362,11 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public EList<HardwareComponentPrototype> getHwTarget() { - if (hwTarget == null) { + if(hwTarget == null) { hwTarget = new EObjectResolvingEList<HardwareComponentPrototype>(HardwareComponentPrototype.class, this, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET); } return hwTarget; @@ -354,10 +375,11 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<FunctionPrototype> getFunctionTarget_path() { - if (functionTarget_path == null) { + if(functionTarget_path == null) { functionTarget_path = new EObjectResolvingEList<FunctionPrototype>(FunctionPrototype.class, this, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__FUNCTION_TARGET_PATH); } return functionTarget_path; @@ -366,10 +388,11 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<HardwareComponentPrototype> getHwTarget_path() { - if (hwTarget_path == null) { + if(hwTarget_path == null) { hwTarget_path = new EObjectContainmentEList<HardwareComponentPrototype>(HardwareComponentPrototype.class, this, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__HW_TARGET_PATH); } return hwTarget_path; @@ -377,14 +400,15 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public NamedElement getTarget() { - if (target != null && target.eIsProxy()) { + if(target != null && target.eIsProxy()) { InternalEObject oldTarget = (InternalEObject)target; target = (NamedElement)eResolveProxy(oldTarget); - if (target != oldTarget) { - if (eNotificationRequired()) + if(target != oldTarget) { + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET, oldTarget, target)); } } @@ -393,6 +417,7 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public ErrorModelType getType() { @@ -402,12 +427,13 @@ public class ErrorModelPrototypeImpl extends EAElementImpl implements ErrorModel /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public void setTarget(NamedElement newTarget) { NamedElement oldTarget = target; target = newTarget; - if (eNotificationRequired()) + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ErrormodelPackage.ERROR_MODEL_PROTOTYPE__TARGET, oldTarget, target)); } |