3 package org.opendaylight.nemo.tool.eclipse.plugin.editor.impl;
5 import java.util.Collection;
7 import org.eclipse.emf.common.util.EList;
9 import org.eclipse.emf.ecore.EClass;
11 import org.eclipse.emf.ecore.util.EObjectResolvingEList;
13 import org.opendaylight.nemo.tool.eclipse.plugin.editor.EditorPackage;
14 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Flow;
15 import org.opendaylight.nemo.tool.eclipse.plugin.editor.FlowUpdate;
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Flow Update</b></em>'.
20 * <!-- end-user-doc -->
22 * The following features are implemented:
25 * <li>{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.impl.FlowUpdateImpl#getFlowId <em>Flow Id</em>}</li>
30 public class FlowUpdateImpl extends SentenceImpl implements FlowUpdate
33 * The cached value of the '{@link #getFlowId() <em>Flow Id</em>}' reference list.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
40 protected EList<Flow> flowId;
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
47 protected FlowUpdateImpl()
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
58 protected EClass eStaticClass()
60 return EditorPackage.Literals.FLOW_UPDATE;
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
68 public EList<Flow> getFlowId()
72 flowId = new EObjectResolvingEList<Flow>(Flow.class, this, EditorPackage.FLOW_UPDATE__FLOW_ID);
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
83 public Object eGet(int featureID, boolean resolve, boolean coreType)
87 case EditorPackage.FLOW_UPDATE__FLOW_ID:
90 return super.eGet(featureID, resolve, coreType);
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
98 @SuppressWarnings("unchecked")
100 public void eSet(int featureID, Object newValue)
104 case EditorPackage.FLOW_UPDATE__FLOW_ID:
106 getFlowId().addAll((Collection<? extends Flow>)newValue);
109 super.eSet(featureID, newValue);
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
118 public void eUnset(int featureID)
122 case EditorPackage.FLOW_UPDATE__FLOW_ID:
126 super.eUnset(featureID);
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
135 public boolean eIsSet(int featureID)
139 case EditorPackage.FLOW_UPDATE__FLOW_ID:
140 return flowId != null && !flowId.isEmpty();
142 return super.eIsSet(featureID);