All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.contextmapper.tactic.dsl.tacticdsl.impl.PropertyImpl Maven / Gradle / Ivy

/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.tactic.dsl.tacticdsl.impl;

import org.contextmapper.tactic.dsl.tacticdsl.Property;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * 
 * An implementation of the model object 'Property'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.tactic.dsl.tacticdsl.impl.PropertyImpl#getDatabaseColumn Database Column}
  • *
* * @generated */ public class PropertyImpl extends AnyPropertyImpl implements Property { /** * The default value of the '{@link #getDatabaseColumn() Database Column}' attribute. * * * @see #getDatabaseColumn() * @generated * @ordered */ protected static final String DATABASE_COLUMN_EDEFAULT = null; /** * The cached value of the '{@link #getDatabaseColumn() Database Column}' attribute. * * * @see #getDatabaseColumn() * @generated * @ordered */ protected String databaseColumn = DATABASE_COLUMN_EDEFAULT; /** * * * @generated */ protected PropertyImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return TacticdslPackage.Literals.PROPERTY; } /** * * * @generated */ public String getDatabaseColumn() { return databaseColumn; } /** * * * @generated */ public void setDatabaseColumn(String newDatabaseColumn) { String oldDatabaseColumn = databaseColumn; databaseColumn = newDatabaseColumn; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TacticdslPackage.PROPERTY__DATABASE_COLUMN, oldDatabaseColumn, databaseColumn)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TacticdslPackage.PROPERTY__DATABASE_COLUMN: return getDatabaseColumn(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TacticdslPackage.PROPERTY__DATABASE_COLUMN: setDatabaseColumn((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TacticdslPackage.PROPERTY__DATABASE_COLUMN: setDatabaseColumn(DATABASE_COLUMN_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TacticdslPackage.PROPERTY__DATABASE_COLUMN: return DATABASE_COLUMN_EDEFAULT == null ? databaseColumn != null : !DATABASE_COLUMN_EDEFAULT.equals(databaseColumn); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (databaseColumn: "); result.append(databaseColumn); result.append(')'); return result.toString(); } } //PropertyImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy