/** * generated by Xtext 2.12.0 */ package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentLevelSpecification; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.DocumentationEntry; 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 'Documentation Entry'. * *

* The following features are implemented: *

* * * @generated */ public class DocumentationEntryImpl extends ConfigEntryImpl implements DocumentationEntry { /** * The default value of the '{@link #getLevel() Level}' attribute. * * * @see #getLevel() * @generated * @ordered */ protected static final DocumentLevelSpecification LEVEL_EDEFAULT = DocumentLevelSpecification.NONE; /** * The cached value of the '{@link #getLevel() Level}' attribute. * * * @see #getLevel() * @generated * @ordered */ protected DocumentLevelSpecification level = LEVEL_EDEFAULT; /** * * * @generated */ protected DocumentationEntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ApplicationConfigurationPackage.Literals.DOCUMENTATION_ENTRY; } /** * * * @generated */ public DocumentLevelSpecification getLevel() { return level; } /** * * * @generated */ public void setLevel(DocumentLevelSpecification newLevel) { DocumentLevelSpecification oldLevel = level; level = newLevel == null ? LEVEL_EDEFAULT : newLevel; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL, oldLevel, level)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: return getLevel(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: setLevel((DocumentLevelSpecification)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: setLevel(LEVEL_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.DOCUMENTATION_ENTRY__LEVEL: return level != LEVEL_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (level: "); result.append(level); result.append(')'); return result.toString(); } } //DocumentationEntryImpl