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

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

/**
 * 
 * 
 *
 */
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;
import org.openxma.dsl.ddl.ddlDsl.SqlCharacter;

/**
 * 
 * An implementation of the model object 'Sql Character'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.SqlCharacterImpl#isNational National}
  • *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.SqlCharacterImpl#getSize Size}
  • *
*

* * @generated */ public class SqlCharacterImpl extends SqlDataTypeImpl implements SqlCharacter { /** * The default value of the '{@link #isNational() National}' attribute. * * * @see #isNational() * @generated * @ordered */ protected static final boolean NATIONAL_EDEFAULT = false; /** * The cached value of the '{@link #isNational() National}' attribute. * * * @see #isNational() * @generated * @ordered */ protected boolean national = NATIONAL_EDEFAULT; /** * The default value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected static final int SIZE_EDEFAULT = 0; /** * The cached value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected int size = SIZE_EDEFAULT; /** * * * @generated */ protected SqlCharacterImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.SQL_CHARACTER; } /** * * * @generated */ public boolean isNational() { return national; } /** * * * @generated */ public void setNational(boolean newNational) { boolean oldNational = national; national = newNational; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.SQL_CHARACTER__NATIONAL, oldNational, national)); } /** * * * @generated */ public int getSize() { return size; } /** * * * @generated */ public void setSize(int newSize) { int oldSize = size; size = newSize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.SQL_CHARACTER__SIZE, oldSize, size)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.SQL_CHARACTER__NATIONAL: return isNational(); case DdlDslPackage.SQL_CHARACTER__SIZE: return getSize(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DdlDslPackage.SQL_CHARACTER__NATIONAL: setNational((Boolean)newValue); return; case DdlDslPackage.SQL_CHARACTER__SIZE: setSize((Integer)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DdlDslPackage.SQL_CHARACTER__NATIONAL: setNational(NATIONAL_EDEFAULT); return; case DdlDslPackage.SQL_CHARACTER__SIZE: setSize(SIZE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.SQL_CHARACTER__NATIONAL: return national != NATIONAL_EDEFAULT; case DdlDslPackage.SQL_CHARACTER__SIZE: return size != SIZE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (national: "); result.append(national); result.append(", size: "); result.append(size); result.append(')'); return result.toString(); } } //SqlCharacterImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy