/** | |
* <copyright> | |
* </copyright> | |
* | |
* $Id$ | |
*/ | |
package org.eclipse.stem.core.graph.impl; | |
import org.eclipse.emf.common.notify.Notification; | |
import org.eclipse.emf.ecore.EClass; | |
import org.eclipse.emf.ecore.InternalEObject; | |
import org.eclipse.emf.ecore.impl.ENotificationImpl; | |
import org.eclipse.stem.core.graph.GraphPackage; | |
import org.eclipse.stem.core.graph.IntegrationLabel; | |
import org.eclipse.stem.core.graph.IntegrationLabelValue; | |
/** | |
* <!-- begin-user-doc --> | |
* An implementation of the model object '<em><b>Integration Label</b></em>'. | |
* <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.stem.core.graph.impl.IntegrationLabelImpl#getDeltaValue <em>Delta Value</em>}</li> | |
* <li>{@link org.eclipse.stem.core.graph.impl.IntegrationLabelImpl#getTempValue <em>Temp Value</em>}</li> | |
* <li>{@link org.eclipse.stem.core.graph.impl.IntegrationLabelImpl#getProbeValue <em>Probe Value</em>}</li> | |
* <li>{@link org.eclipse.stem.core.graph.impl.IntegrationLabelImpl#getErrorScale <em>Error Scale</em>}</li> | |
* <li>{@link org.eclipse.stem.core.graph.impl.IntegrationLabelImpl#getIdentifier <em>Identifier</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public abstract class IntegrationLabelImpl extends DynamicNodeLabelImpl implements IntegrationLabel { | |
/** | |
* The cached value of the '{@link #getDeltaValue() <em>Delta Value</em>}' reference. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getDeltaValue() | |
* @generated | |
* @ordered | |
*/ | |
protected IntegrationLabelValue deltaValue; | |
/** | |
* The cached value of the '{@link #getTempValue() <em>Temp Value</em>}' reference. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getTempValue() | |
* @generated | |
* @ordered | |
*/ | |
protected IntegrationLabelValue tempValue; | |
/** | |
* The cached value of the '{@link #getProbeValue() <em>Probe Value</em>}' reference. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getProbeValue() | |
* @generated | |
* @ordered | |
*/ | |
protected IntegrationLabelValue probeValue; | |
/** | |
* The cached value of the '{@link #getErrorScale() <em>Error Scale</em>}' reference. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getErrorScale() | |
* @generated | |
* @ordered | |
*/ | |
protected IntegrationLabelValue errorScale; | |
/** | |
* The default value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getIdentifier() | |
* @generated | |
* @ordered | |
*/ | |
protected static final String IDENTIFIER_EDEFAULT = null; | |
/** | |
* The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @see #getIdentifier() | |
* @generated | |
* @ordered | |
*/ | |
protected String identifier = IDENTIFIER_EDEFAULT; | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected IntegrationLabelImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return GraphPackage.Literals.INTEGRATION_LABEL; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue getDeltaValue() { | |
if (deltaValue != null && deltaValue.eIsProxy()) { | |
InternalEObject oldDeltaValue = (InternalEObject)deltaValue; | |
deltaValue = (IntegrationLabelValue)eResolveProxy(oldDeltaValue); | |
if (deltaValue != oldDeltaValue) { | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.INTEGRATION_LABEL__DELTA_VALUE, oldDeltaValue, deltaValue)); | |
} | |
} | |
return deltaValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue basicGetDeltaValue() { | |
return deltaValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setDeltaValue(IntegrationLabelValue newDeltaValue) { | |
IntegrationLabelValue oldDeltaValue = deltaValue; | |
deltaValue = newDeltaValue; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.INTEGRATION_LABEL__DELTA_VALUE, oldDeltaValue, deltaValue)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue getTempValue() { | |
if (tempValue != null && tempValue.eIsProxy()) { | |
InternalEObject oldTempValue = (InternalEObject)tempValue; | |
tempValue = (IntegrationLabelValue)eResolveProxy(oldTempValue); | |
if (tempValue != oldTempValue) { | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.INTEGRATION_LABEL__TEMP_VALUE, oldTempValue, tempValue)); | |
} | |
} | |
return tempValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue basicGetTempValue() { | |
return tempValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setTempValue(IntegrationLabelValue newTempValue) { | |
IntegrationLabelValue oldTempValue = tempValue; | |
tempValue = newTempValue; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.INTEGRATION_LABEL__TEMP_VALUE, oldTempValue, tempValue)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue getProbeValue() { | |
if (probeValue != null && probeValue.eIsProxy()) { | |
InternalEObject oldProbeValue = (InternalEObject)probeValue; | |
probeValue = (IntegrationLabelValue)eResolveProxy(oldProbeValue); | |
if (probeValue != oldProbeValue) { | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.INTEGRATION_LABEL__PROBE_VALUE, oldProbeValue, probeValue)); | |
} | |
} | |
return probeValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue basicGetProbeValue() { | |
return probeValue; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setProbeValue(IntegrationLabelValue newProbeValue) { | |
IntegrationLabelValue oldProbeValue = probeValue; | |
probeValue = newProbeValue; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.INTEGRATION_LABEL__PROBE_VALUE, oldProbeValue, probeValue)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue getErrorScale() { | |
if (errorScale != null && errorScale.eIsProxy()) { | |
InternalEObject oldErrorScale = (InternalEObject)errorScale; | |
errorScale = (IntegrationLabelValue)eResolveProxy(oldErrorScale); | |
if (errorScale != oldErrorScale) { | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.INTEGRATION_LABEL__ERROR_SCALE, oldErrorScale, errorScale)); | |
} | |
} | |
return errorScale; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public IntegrationLabelValue basicGetErrorScale() { | |
return errorScale; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setErrorScale(IntegrationLabelValue newErrorScale) { | |
IntegrationLabelValue oldErrorScale = errorScale; | |
errorScale = newErrorScale; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.INTEGRATION_LABEL__ERROR_SCALE, oldErrorScale, errorScale)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public String getIdentifier() { | |
return identifier; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public Object eGet(int featureID, boolean resolve, boolean coreType) { | |
switch (featureID) { | |
case GraphPackage.INTEGRATION_LABEL__DELTA_VALUE: | |
if (resolve) return getDeltaValue(); | |
return basicGetDeltaValue(); | |
case GraphPackage.INTEGRATION_LABEL__TEMP_VALUE: | |
if (resolve) return getTempValue(); | |
return basicGetTempValue(); | |
case GraphPackage.INTEGRATION_LABEL__PROBE_VALUE: | |
if (resolve) return getProbeValue(); | |
return basicGetProbeValue(); | |
case GraphPackage.INTEGRATION_LABEL__ERROR_SCALE: | |
if (resolve) return getErrorScale(); | |
return basicGetErrorScale(); | |
case GraphPackage.INTEGRATION_LABEL__IDENTIFIER: | |
return getIdentifier(); | |
} | |
return super.eGet(featureID, resolve, coreType); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eSet(int featureID, Object newValue) { | |
switch (featureID) { | |
case GraphPackage.INTEGRATION_LABEL__DELTA_VALUE: | |
setDeltaValue((IntegrationLabelValue)newValue); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__TEMP_VALUE: | |
setTempValue((IntegrationLabelValue)newValue); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__PROBE_VALUE: | |
setProbeValue((IntegrationLabelValue)newValue); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__ERROR_SCALE: | |
setErrorScale((IntegrationLabelValue)newValue); | |
return; | |
} | |
super.eSet(featureID, newValue); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eUnset(int featureID) { | |
switch (featureID) { | |
case GraphPackage.INTEGRATION_LABEL__DELTA_VALUE: | |
setDeltaValue((IntegrationLabelValue)null); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__TEMP_VALUE: | |
setTempValue((IntegrationLabelValue)null); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__PROBE_VALUE: | |
setProbeValue((IntegrationLabelValue)null); | |
return; | |
case GraphPackage.INTEGRATION_LABEL__ERROR_SCALE: | |
setErrorScale((IntegrationLabelValue)null); | |
return; | |
} | |
super.eUnset(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public boolean eIsSet(int featureID) { | |
switch (featureID) { | |
case GraphPackage.INTEGRATION_LABEL__DELTA_VALUE: | |
return deltaValue != null; | |
case GraphPackage.INTEGRATION_LABEL__TEMP_VALUE: | |
return tempValue != null; | |
case GraphPackage.INTEGRATION_LABEL__PROBE_VALUE: | |
return probeValue != null; | |
case GraphPackage.INTEGRATION_LABEL__ERROR_SCALE: | |
return errorScale != null; | |
case GraphPackage.INTEGRATION_LABEL__IDENTIFIER: | |
return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); | |
} | |
return super.eIsSet(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public String toString() { | |
if (eIsProxy()) return super.toString(); | |
StringBuffer result = new StringBuffer(super.toString()); | |
result.append(" (identifier: "); //$NON-NLS-1$ | |
result.append(identifier); | |
result.append(')'); | |
return result.toString(); | |
} | |
} //IntegrationLabelImpl |