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

org.openxma.dsl.ddl.ddlDsl.impl.LongImpl Maven / Gradle / Ivy

The newest version!
/**
 * 
 * 
 *
 */
package org.openxma.dsl.ddl.ddlDsl.impl;

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

import org.eclipse.emf.ecore.EClass;

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

import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;

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

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.LongImpl#isRaw Raw}
  • *
*

* * @generated */ public class LongImpl extends LongRawImpl implements org.openxma.dsl.ddl.ddlDsl.Long { /** * The default value of the '{@link #isRaw() Raw}' attribute. * * * @see #isRaw() * @generated * @ordered */ protected static final boolean RAW_EDEFAULT = false; /** * The cached value of the '{@link #isRaw() Raw}' attribute. * * * @see #isRaw() * @generated * @ordered */ protected boolean raw = RAW_EDEFAULT; /** * * * @generated */ protected LongImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.LONG; } /** * * * @generated */ public boolean isRaw() { return raw; } /** * * * @generated */ public void setRaw(boolean newRaw) { boolean oldRaw = raw; raw = newRaw; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.LONG__RAW, oldRaw, raw)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.LONG__RAW: return isRaw(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DdlDslPackage.LONG__RAW: setRaw((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DdlDslPackage.LONG__RAW: setRaw(RAW_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.LONG__RAW: return raw != RAW_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (raw: "); result.append(raw); result.append(')'); return result.toString(); } } //LongImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy