diff options
Diffstat (limited to 'ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AttributeTranslationStepImpl.java')
-rw-r--r-- | ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AttributeTranslationStepImpl.java | 270 |
1 files changed, 270 insertions, 0 deletions
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AttributeTranslationStepImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AttributeTranslationStepImpl.java new file mode 100644 index 0000000..52f3163 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AttributeTranslationStepImpl.java @@ -0,0 +1,270 @@ +/** + */ +package org.openecomp.ncomp.sirius.manager.server.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.openecomp.ncomp.sirius.manager.server.AttributeTranslationStep; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Attribute Translation Step</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AttributeTranslationStepImpl#getAttribute <em>Attribute</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AttributeTranslationStepImpl#getCurrentValue <em>Current Value</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AttributeTranslationStepImpl#getOldValue <em>Old Value</em>}</li> + * </ul> + * + * @generated + */ +public class AttributeTranslationStepImpl extends VersionTranslationStepImpl implements AttributeTranslationStep { + /** + * The default value of the '{@link #getAttribute() <em>Attribute</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttribute() + * @generated + * @ordered + */ + protected static final String ATTRIBUTE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttribute() <em>Attribute</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttribute() + * @generated + * @ordered + */ + protected String attribute = ATTRIBUTE_EDEFAULT; + + /** + * The default value of the '{@link #getCurrentValue() <em>Current Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCurrentValue() + * @generated + * @ordered + */ + protected static final String CURRENT_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCurrentValue() <em>Current Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCurrentValue() + * @generated + * @ordered + */ + protected String currentValue = CURRENT_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getOldValue() <em>Old Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOldValue() + * @generated + * @ordered + */ + protected static final String OLD_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOldValue() <em>Old Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOldValue() + * @generated + * @ordered + */ + protected String oldValue = OLD_VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AttributeTranslationStepImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.ATTRIBUTE_TRANSLATION_STEP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAttribute() { + return attribute; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttribute(String newAttribute) { + String oldAttribute = attribute; + attribute = newAttribute; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.ATTRIBUTE_TRANSLATION_STEP__ATTRIBUTE, oldAttribute, attribute)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCurrentValue() { + return currentValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCurrentValue(String newCurrentValue) { + String oldCurrentValue = currentValue; + currentValue = newCurrentValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.ATTRIBUTE_TRANSLATION_STEP__CURRENT_VALUE, oldCurrentValue, currentValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOldValue() { + return oldValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOldValue(String newOldValue) { + String oldOldValue = oldValue; + oldValue = newOldValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.ATTRIBUTE_TRANSLATION_STEP__OLD_VALUE, oldOldValue, oldValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__ATTRIBUTE: + return getAttribute(); + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__CURRENT_VALUE: + return getCurrentValue(); + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__OLD_VALUE: + return getOldValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__ATTRIBUTE: + setAttribute((String)newValue); + return; + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__CURRENT_VALUE: + setCurrentValue((String)newValue); + return; + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__OLD_VALUE: + setOldValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__ATTRIBUTE: + setAttribute(ATTRIBUTE_EDEFAULT); + return; + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__CURRENT_VALUE: + setCurrentValue(CURRENT_VALUE_EDEFAULT); + return; + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__OLD_VALUE: + setOldValue(OLD_VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__ATTRIBUTE: + return ATTRIBUTE_EDEFAULT == null ? attribute != null : !ATTRIBUTE_EDEFAULT.equals(attribute); + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__CURRENT_VALUE: + return CURRENT_VALUE_EDEFAULT == null ? currentValue != null : !CURRENT_VALUE_EDEFAULT.equals(currentValue); + case ServerPackage.ATTRIBUTE_TRANSLATION_STEP__OLD_VALUE: + return OLD_VALUE_EDEFAULT == null ? oldValue != null : !OLD_VALUE_EDEFAULT.equals(oldValue); + } + 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(" (attribute: "); + result.append(attribute); + result.append(", currentValue: "); + result.append(currentValue); + result.append(", oldValue: "); + result.append(oldValue); + result.append(')'); + return result.toString(); + } + +} //AttributeTranslationStepImpl |