Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.java66
1 files changed, 44 insertions, 22 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.java
index 19108e92790..af0ba02d935 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/FunctionPortImpl.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
@@ -34,7 +34,7 @@ import org.eclipse.uml2.uml.Port;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.functionmodeling.impl.FunctionPortImpl#getBase_Port <em>Base Port</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.functionmodeling.impl.FunctionPortImpl#getBase_Port <em>Base Port</em>}</li>
* </ul>
* </p>
*
@@ -45,6 +45,7 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
* The cached value of the '{@link #getBase_Port() <em>Base Port</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getBase_Port()
* @generated
* @ordered
@@ -54,6 +55,7 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected FunctionPortImpl() {
@@ -63,6 +65,7 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -73,15 +76,18 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public Port getBase_Port() {
if (base_Port != null && base_Port.eIsProxy()) {
- InternalEObject oldBase_Port = (InternalEObject)base_Port;
- base_Port = (Port)eResolveProxy(oldBase_Port);
+ InternalEObject oldBase_Port = (InternalEObject) base_Port;
+ base_Port = (Port) eResolveProxy(oldBase_Port);
if (base_Port != oldBase_Port) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT, oldBase_Port, base_Port));
+ }
}
}
return base_Port;
@@ -90,6 +96,7 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Port basicGetBase_Port() {
@@ -99,26 +106,32 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setBase_Port(Port newBase_Port) {
Port oldBase_Port = base_Port;
base_Port = newBase_Port;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT, oldBase_Port, base_Port));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
- if (resolve) return getBase_Port();
- return basicGetBase_Port();
+ case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
+ if (resolve) {
+ return getBase_Port();
+ }
+ return basicGetBase_Port();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -126,14 +139,15 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
- setBase_Port((Port)newValue);
- return;
+ case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
+ setBase_Port((Port) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -141,14 +155,15 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
- setBase_Port((Port)null);
- return;
+ case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
+ setBase_Port((Port) null);
+ return;
}
super.eUnset(featureID);
}
@@ -156,13 +171,14 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
- return base_Port != null;
+ case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
+ return base_Port != null;
}
return super.eIsSet(featureID);
}
@@ -170,14 +186,17 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
if (baseClass == EAPort.class) {
switch (derivedFeatureID) {
- case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT: return ElementsPackage.EA_PORT__BASE_PORT;
- default: return -1;
+ case FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT:
+ return ElementsPackage.EA_PORT__BASE_PORT;
+ default:
+ return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
@@ -186,17 +205,20 @@ public abstract class FunctionPortImpl extends EAElementImpl implements Function
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
if (baseClass == EAPort.class) {
switch (baseFeatureID) {
- case ElementsPackage.EA_PORT__BASE_PORT: return FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT;
- default: return -1;
+ case ElementsPackage.EA_PORT__BASE_PORT:
+ return FunctionmodelingPackage.FUNCTION_PORT__BASE_PORT;
+ default:
+ return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
-} //FunctionPortImpl
+} // FunctionPortImpl

Back to the top