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

de.opitzconsulting.orcasDsl.impl.CommentImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.Comment;
import de.opitzconsulting.orcasDsl.CommentObjectType;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;

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 'Comment'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.CommentImpl#getComment_object Comment object}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.CommentImpl#getTable_name Table name}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.CommentImpl#getColumn_name Column name}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.CommentImpl#getComment Comment}
  • *
* * @generated */ public class CommentImpl extends ModelElementImpl implements Comment { /** * The default value of the '{@link #getComment_object() Comment object}' attribute. * * * @see #getComment_object() * @generated * @ordered */ public static final CommentObjectType COMMENT_OBJECT_EDEFAULT = null; /** * The cached value of the '{@link #getComment_object() Comment object}' attribute. * * * @see #getComment_object() * @generated * @ordered */ public CommentObjectType comment_object = COMMENT_OBJECT_EDEFAULT; /** * The default value of the '{@link #getTable_name() Table name}' attribute. * * * @see #getTable_name() * @generated * @ordered */ public static final String TABLE_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getTable_name() Table name}' attribute. * * * @see #getTable_name() * @generated * @ordered */ public String table_name = TABLE_NAME_EDEFAULT; /** * The default value of the '{@link #getColumn_name() Column name}' attribute. * * * @see #getColumn_name() * @generated * @ordered */ public static final String COLUMN_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getColumn_name() Column name}' attribute. * * * @see #getColumn_name() * @generated * @ordered */ public String column_name = COLUMN_NAME_EDEFAULT; /** * The default value of the '{@link #getComment() Comment}' attribute. * * * @see #getComment() * @generated * @ordered */ public static final String COMMENT_EDEFAULT = null; /** * The cached value of the '{@link #getComment() Comment}' attribute. * * * @see #getComment() * @generated * @ordered */ public String comment = COMMENT_EDEFAULT; /** * * * @generated */ public CommentImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.COMMENT; } /** * * * @generated */ public CommentObjectType getComment_object() { return comment_object; } /** * * * @generated */ public void setComment_object(CommentObjectType newComment_object) { CommentObjectType oldComment_object = comment_object; comment_object = newComment_object == null ? COMMENT_OBJECT_EDEFAULT : newComment_object; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COMMENT__COMMENT_OBJECT, oldComment_object, comment_object)); } /** * * * @generated */ public String getTable_name() { return table_name; } /** * * * @generated */ public void setTable_name(String newTable_name) { String oldTable_name = table_name; table_name = newTable_name; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COMMENT__TABLE_NAME, oldTable_name, table_name)); } /** * * * @generated */ public String getColumn_name() { return column_name; } /** * * * @generated */ public void setColumn_name(String newColumn_name) { String oldColumn_name = column_name; column_name = newColumn_name; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COMMENT__COLUMN_NAME, oldColumn_name, column_name)); } /** * * * @generated */ public String getComment() { return comment; } /** * * * @generated */ public void setComment(String newComment) { String oldComment = comment; comment = newComment; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.COMMENT__COMMENT, oldComment, comment)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.COMMENT__COMMENT_OBJECT: return getComment_object(); case OrcasDslPackage.COMMENT__TABLE_NAME: return getTable_name(); case OrcasDslPackage.COMMENT__COLUMN_NAME: return getColumn_name(); case OrcasDslPackage.COMMENT__COMMENT: return getComment(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.COMMENT__COMMENT_OBJECT: setComment_object((CommentObjectType)newValue); return; case OrcasDslPackage.COMMENT__TABLE_NAME: setTable_name((String)newValue); return; case OrcasDslPackage.COMMENT__COLUMN_NAME: setColumn_name((String)newValue); return; case OrcasDslPackage.COMMENT__COMMENT: setComment((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.COMMENT__COMMENT_OBJECT: setComment_object(COMMENT_OBJECT_EDEFAULT); return; case OrcasDslPackage.COMMENT__TABLE_NAME: setTable_name(TABLE_NAME_EDEFAULT); return; case OrcasDslPackage.COMMENT__COLUMN_NAME: setColumn_name(COLUMN_NAME_EDEFAULT); return; case OrcasDslPackage.COMMENT__COMMENT: setComment(COMMENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.COMMENT__COMMENT_OBJECT: return comment_object != COMMENT_OBJECT_EDEFAULT; case OrcasDslPackage.COMMENT__TABLE_NAME: return TABLE_NAME_EDEFAULT == null ? table_name != null : !TABLE_NAME_EDEFAULT.equals(table_name); case OrcasDslPackage.COMMENT__COLUMN_NAME: return COLUMN_NAME_EDEFAULT == null ? column_name != null : !COLUMN_NAME_EDEFAULT.equals(column_name); case OrcasDslPackage.COMMENT__COMMENT: return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (comment_object: "); result.append(comment_object); result.append(", table_name: "); result.append(table_name); result.append(", column_name: "); result.append(column_name); result.append(", comment: "); result.append(comment); result.append(')'); return result.toString(); } } //CommentImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy