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

sculptormetamodel.impl.EntityImpl Maven / Gradle / Ivy

/**
 */
package sculptormetamodel.impl;

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

import org.eclipse.emf.ecore.EClass;

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

import sculptormetamodel.Entity;
import sculptormetamodel.SculptormetamodelPackage;

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

* The following features are implemented: *

    *
  • {@link sculptormetamodel.impl.EntityImpl#isAuditable Auditable}
  • *
*

* * @generated */ public class EntityImpl extends DomainObjectImpl implements Entity { /** * The default value of the '{@link #isAuditable() Auditable}' attribute. * * * @see #isAuditable() * @generated * @ordered */ protected static final boolean AUDITABLE_EDEFAULT = true; /** * The cached value of the '{@link #isAuditable() Auditable}' attribute. * * * @see #isAuditable() * @generated * @ordered */ protected boolean auditable = AUDITABLE_EDEFAULT; /** * * * @generated */ protected EntityImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SculptormetamodelPackage.Literals.ENTITY; } /** * * * @generated */ public boolean isAuditable() { return auditable; } /** * * * @generated */ public void setAuditable(boolean newAuditable) { boolean oldAuditable = auditable; auditable = newAuditable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.ENTITY__AUDITABLE, oldAuditable, auditable)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SculptormetamodelPackage.ENTITY__AUDITABLE: return isAuditable(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SculptormetamodelPackage.ENTITY__AUDITABLE: setAuditable((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SculptormetamodelPackage.ENTITY__AUDITABLE: setAuditable(AUDITABLE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SculptormetamodelPackage.ENTITY__AUDITABLE: return auditable != AUDITABLE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (auditable: "); result.append(auditable); result.append(')'); return result.toString(); } } //EntityImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy