Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java173
1 files changed, 99 insertions, 74 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java
index 106a993d87f..69d03af1d4d 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/errormodel/impl/FaultFailurePropagationLinkImpl.java
@@ -39,15 +39,16 @@ import org.eclipse.uml2.uml.util.UMLUtil;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getBase_Connector <em>Base Connector</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#isImmediatePropagation <em>Immediate Propagation</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getToPort <em>To Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getFromPort <em>From Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getFromPort_path <em>From Port path</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getToPort_path <em>To Port path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getBase_Connector <em>Base Connector</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#isImmediatePropagation <em>Immediate
+ * Propagation</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getToPort <em>To Port</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getFromPort <em>From Port</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getFromPort_path <em>From Port path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.dependability.errormodel.impl.FaultFailurePropagationLinkImpl#getToPort_path <em>To Port path</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class FaultFailurePropagationLinkImpl extends EAElementImpl implements FaultFailurePropagationLink {
@@ -56,6 +57,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
* The cached value of the '{@link #getBase_Connector() <em>Base Connector</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getBase_Connector()
* @generated
* @ordered
@@ -65,6 +67,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* The default value of the '{@link #isImmediatePropagation() <em>Immediate Propagation</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #isImmediatePropagation()
* @generated
* @ordered
@@ -74,6 +77,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* The cached value of the '{@link #isImmediatePropagation() <em>Immediate Propagation</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @see #isImmediatePropagation()
* @generated
* @ordered
@@ -84,6 +88,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
* The cached value of the '{@link #getFromPort_path() <em>From Port path</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFromPort_path()
* @generated
* @ordered
@@ -94,6 +99,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
* The cached value of the '{@link #getToPort_path() <em>To Port path</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getToPort_path()
* @generated
* @ordered
@@ -102,6 +108,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected FaultFailurePropagationLinkImpl() {
@@ -124,8 +131,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
if((ce != null) && (ce instanceof Port)) {
// Test if ConnectableElement ce is FaultFailurePort
- currentFlowPort = (FaultFailurePort)UMLUtil.getStereotypeApplication(ce,
- FaultFailurePort.class);
+ currentFlowPort = (FaultFailurePort)UMLUtil.getStereotypeApplication(ce, FaultFailurePort.class);
}
}
}
@@ -135,10 +141,11 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<ErrorModelPrototype> getFromPort_path() {
- if (fromPort_path == null) {
+ if(fromPort_path == null) {
fromPort_path = new EObjectResolvingEList<ErrorModelPrototype>(ErrorModelPrototype.class, this, ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH);
}
return fromPort_path;
@@ -147,10 +154,11 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EList<ErrorModelPrototype> getToPort_path() {
- if (toPort_path == null) {
+ if(toPort_path == null) {
toPort_path = new EObjectResolvingEList<ErrorModelPrototype>(ErrorModelPrototype.class, this, ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH);
}
return toPort_path;
@@ -181,81 +189,88 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
- if (resolve) return getBase_Connector();
- return basicGetBase_Connector();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
- return isImmediatePropagation();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT:
- if (resolve) return getToPort();
- return basicGetToPort();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT:
- if (resolve) return getFromPort();
- return basicGetFromPort();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
- return getFromPort_path();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
- return getToPort_path();
+ switch(featureID) {
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
+ if(resolve)
+ return getBase_Connector();
+ return basicGetBase_Connector();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
+ return isImmediatePropagation();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT:
+ if(resolve)
+ return getToPort();
+ return basicGetToPort();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT:
+ if(resolve)
+ return getFromPort();
+ return basicGetFromPort();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
+ return getFromPort_path();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
+ return getToPort_path();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
- return base_Connector != null;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
- return immediatePropagation != IMMEDIATE_PROPAGATION_EDEFAULT;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT:
- return basicGetToPort() != null;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT:
- return basicGetFromPort() != null;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
- return fromPort_path != null && !fromPort_path.isEmpty();
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
- return toPort_path != null && !toPort_path.isEmpty();
+ switch(featureID) {
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
+ return base_Connector != null;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
+ return immediatePropagation != IMMEDIATE_PROPAGATION_EDEFAULT;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT:
+ return basicGetToPort() != null;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT:
+ return basicGetFromPort() != null;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
+ return fromPort_path != null && !fromPort_path.isEmpty();
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
+ return toPort_path != null && !toPort_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.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
- setBase_Connector((Connector)newValue);
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
- setImmediatePropagation((Boolean)newValue);
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
- getFromPort_path().clear();
- getFromPort_path().addAll((Collection<? extends ErrorModelPrototype>)newValue);
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
- getToPort_path().clear();
- getToPort_path().addAll((Collection<? extends ErrorModelPrototype>)newValue);
- return;
+ switch(featureID) {
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
+ setBase_Connector((Connector)newValue);
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
+ setImmediatePropagation((Boolean)newValue);
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
+ getFromPort_path().clear();
+ getFromPort_path().addAll((Collection<? extends ErrorModelPrototype>)newValue);
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
+ getToPort_path().clear();
+ getToPort_path().addAll((Collection<? extends ErrorModelPrototype>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -266,14 +281,15 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Connector getBase_Connector() {
- if (base_Connector != null && base_Connector.eIsProxy()) {
+ if(base_Connector != null && base_Connector.eIsProxy()) {
InternalEObject oldBase_Connector = (InternalEObject)base_Connector;
base_Connector = (Connector)eResolveProxy(oldBase_Connector);
- if (base_Connector != oldBase_Connector) {
- if (eNotificationRequired())
+ if(base_Connector != oldBase_Connector) {
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR, oldBase_Connector, base_Connector));
}
}
@@ -283,6 +299,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Connector basicGetBase_Connector() {
@@ -292,40 +309,43 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setBase_Connector(Connector newBase_Connector) {
Connector oldBase_Connector = base_Connector;
base_Connector = newBase_Connector;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR, oldBase_Connector, base_Connector));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
- setBase_Connector((Connector)null);
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
- setImmediatePropagation(IMMEDIATE_PROPAGATION_EDEFAULT);
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
- getFromPort_path().clear();
- return;
- case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
- getToPort_path().clear();
- return;
+ switch(featureID) {
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__BASE_CONNECTOR:
+ setBase_Connector((Connector)null);
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION:
+ setImmediatePropagation(IMMEDIATE_PROPAGATION_EDEFAULT);
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__FROM_PORT_PATH:
+ getFromPort_path().clear();
+ return;
+ case ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__TO_PORT_PATH:
+ getToPort_path().clear();
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public FaultFailurePort getFromPort() {
@@ -335,6 +355,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public FaultFailurePort getToPort() {
@@ -344,6 +365,7 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public boolean isImmediatePropagation() {
@@ -352,22 +374,25 @@ public class FaultFailurePropagationLinkImpl extends EAElementImpl implements Fa
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public void setImmediatePropagation(boolean newImmediatePropagation) {
boolean oldImmediatePropagation = immediatePropagation;
immediatePropagation = newImmediatePropagation;
- if (eNotificationRequired())
+ if(eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ErrormodelPackage.FAULT_FAILURE_PROPAGATION_LINK__IMMEDIATE_PROPAGATION, oldImmediatePropagation, immediatePropagation));
}
/**
* <!-- 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(" (immediatePropagation: ");

Back to the top