blob: 13c2259732a9f20a60c810c2e403cfaf0549bce8 [file] [log] [blame]
/*
* Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eike Stepper - initial API and implementation
*
* $Id: NotUnsettableImpl.java,v 1.3 2011-01-01 11:01:57 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.model2.legacy.impl;
import org.eclipse.emf.cdo.tests.model1.VAT;
import org.eclipse.emf.cdo.tests.model2.NotUnsettable;
import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import java.util.Date;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>Not Unsettable</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#isNotUnsettableBoolean <em>Not Unsettable Boolean</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableByte <em>Not Unsettable Byte</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableChar <em>Not Unsettable Char</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableDate <em>Not Unsettable Date</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableDouble <em>Not Unsettable Double</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableFloat <em>Not Unsettable Float</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableInt <em>Not Unsettable Int</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableLong <em>Not Unsettable Long</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableShort <em>Not Unsettable Short</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableString <em>Not Unsettable String</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableVAT <em>Not Unsettable VAT</em>}</li>
* </ul>
*
* @generated
*/
public class NotUnsettableImpl extends EObjectImpl implements NotUnsettable
{
/**
* The default value of the '{@link #isNotUnsettableBoolean() <em>Not Unsettable Boolean</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #isNotUnsettableBoolean()
* @generated
* @ordered
*/
protected static final boolean NOT_UNSETTABLE_BOOLEAN_EDEFAULT = false;
/**
* The cached value of the '{@link #isNotUnsettableBoolean() <em>Not Unsettable Boolean</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #isNotUnsettableBoolean()
* @generated
* @ordered
*/
protected boolean notUnsettableBoolean = NOT_UNSETTABLE_BOOLEAN_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableByte() <em>Not Unsettable Byte</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableByte()
* @generated
* @ordered
*/
protected static final byte NOT_UNSETTABLE_BYTE_EDEFAULT = 0x00;
/**
* The cached value of the '{@link #getNotUnsettableByte() <em>Not Unsettable Byte</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableByte()
* @generated
* @ordered
*/
protected byte notUnsettableByte = NOT_UNSETTABLE_BYTE_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableChar() <em>Not Unsettable Char</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableChar()
* @generated
* @ordered
*/
protected static final char NOT_UNSETTABLE_CHAR_EDEFAULT = '\u0000';
/**
* The cached value of the '{@link #getNotUnsettableChar() <em>Not Unsettable Char</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableChar()
* @generated
* @ordered
*/
protected char notUnsettableChar = NOT_UNSETTABLE_CHAR_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableDate() <em>Not Unsettable Date</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableDate()
* @generated
* @ordered
*/
protected static final Date NOT_UNSETTABLE_DATE_EDEFAULT = null;
/**
* The cached value of the '{@link #getNotUnsettableDate() <em>Not Unsettable Date</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableDate()
* @generated
* @ordered
*/
protected Date notUnsettableDate = NOT_UNSETTABLE_DATE_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableDouble() <em>Not Unsettable Double</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableDouble()
* @generated
* @ordered
*/
protected static final double NOT_UNSETTABLE_DOUBLE_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getNotUnsettableDouble() <em>Not Unsettable Double</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableDouble()
* @generated
* @ordered
*/
protected double notUnsettableDouble = NOT_UNSETTABLE_DOUBLE_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableFloat() <em>Not Unsettable Float</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableFloat()
* @generated
* @ordered
*/
protected static final float NOT_UNSETTABLE_FLOAT_EDEFAULT = 0.0F;
/**
* The cached value of the '{@link #getNotUnsettableFloat() <em>Not Unsettable Float</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableFloat()
* @generated
* @ordered
*/
protected float notUnsettableFloat = NOT_UNSETTABLE_FLOAT_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableInt() <em>Not Unsettable Int</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableInt()
* @generated
* @ordered
*/
protected static final int NOT_UNSETTABLE_INT_EDEFAULT = 0;
/**
* The cached value of the '{@link #getNotUnsettableInt() <em>Not Unsettable Int</em>}' attribute.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
* @see #getNotUnsettableInt()
* @generated
* @ordered
*/
protected int notUnsettableInt = NOT_UNSETTABLE_INT_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableLong() <em>Not Unsettable Long</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableLong()
* @generated
* @ordered
*/
protected static final long NOT_UNSETTABLE_LONG_EDEFAULT = 0L;
/**
* The cached value of the '{@link #getNotUnsettableLong() <em>Not Unsettable Long</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableLong()
* @generated
* @ordered
*/
protected long notUnsettableLong = NOT_UNSETTABLE_LONG_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableShort() <em>Not Unsettable Short</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableShort()
* @generated
* @ordered
*/
protected static final short NOT_UNSETTABLE_SHORT_EDEFAULT = 0;
/**
* The cached value of the '{@link #getNotUnsettableShort() <em>Not Unsettable Short</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableShort()
* @generated
* @ordered
*/
protected short notUnsettableShort = NOT_UNSETTABLE_SHORT_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableString() <em>Not Unsettable String</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableString()
* @generated
* @ordered
*/
protected static final String NOT_UNSETTABLE_STRING_EDEFAULT = null;
/**
* The cached value of the '{@link #getNotUnsettableString() <em>Not Unsettable String</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableString()
* @generated
* @ordered
*/
protected String notUnsettableString = NOT_UNSETTABLE_STRING_EDEFAULT;
/**
* The default value of the '{@link #getNotUnsettableVAT() <em>Not Unsettable VAT</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @see #getNotUnsettableVAT()
* @generated
* @ordered
*/
protected static final VAT NOT_UNSETTABLE_VAT_EDEFAULT = VAT.VAT0;
/**
* The cached value of the '{@link #getNotUnsettableVAT() <em>Not Unsettable VAT</em>}' attribute.
* <!-- begin-user-doc
* --> <!-- end-user-doc -->
* @see #getNotUnsettableVAT()
* @generated
* @ordered
*/
protected VAT notUnsettableVAT = NOT_UNSETTABLE_VAT_EDEFAULT;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected NotUnsettableImpl()
{
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return Model2Package.eINSTANCE.getNotUnsettable();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public boolean isNotUnsettableBoolean()
{
return notUnsettableBoolean;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean)
{
boolean oldNotUnsettableBoolean = notUnsettableBoolean;
notUnsettableBoolean = newNotUnsettableBoolean;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN,
oldNotUnsettableBoolean, notUnsettableBoolean));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public byte getNotUnsettableByte()
{
return notUnsettableByte;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableByte(byte newNotUnsettableByte)
{
byte oldNotUnsettableByte = notUnsettableByte;
notUnsettableByte = newNotUnsettableByte;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE,
oldNotUnsettableByte, notUnsettableByte));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public char getNotUnsettableChar()
{
return notUnsettableChar;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableChar(char newNotUnsettableChar)
{
char oldNotUnsettableChar = notUnsettableChar;
notUnsettableChar = newNotUnsettableChar;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR,
oldNotUnsettableChar, notUnsettableChar));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public Date getNotUnsettableDate()
{
return notUnsettableDate;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableDate(Date newNotUnsettableDate)
{
Date oldNotUnsettableDate = notUnsettableDate;
notUnsettableDate = newNotUnsettableDate;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE,
oldNotUnsettableDate, notUnsettableDate));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public double getNotUnsettableDouble()
{
return notUnsettableDouble;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableDouble(double newNotUnsettableDouble)
{
double oldNotUnsettableDouble = notUnsettableDouble;
notUnsettableDouble = newNotUnsettableDouble;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE,
oldNotUnsettableDouble, notUnsettableDouble));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public float getNotUnsettableFloat()
{
return notUnsettableFloat;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableFloat(float newNotUnsettableFloat)
{
float oldNotUnsettableFloat = notUnsettableFloat;
notUnsettableFloat = newNotUnsettableFloat;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT,
oldNotUnsettableFloat, notUnsettableFloat));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public int getNotUnsettableInt()
{
return notUnsettableInt;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableInt(int newNotUnsettableInt)
{
int oldNotUnsettableInt = notUnsettableInt;
notUnsettableInt = newNotUnsettableInt;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT,
oldNotUnsettableInt, notUnsettableInt));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public long getNotUnsettableLong()
{
return notUnsettableLong;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableLong(long newNotUnsettableLong)
{
long oldNotUnsettableLong = notUnsettableLong;
notUnsettableLong = newNotUnsettableLong;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG,
oldNotUnsettableLong, notUnsettableLong));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public short getNotUnsettableShort()
{
return notUnsettableShort;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableShort(short newNotUnsettableShort)
{
short oldNotUnsettableShort = notUnsettableShort;
notUnsettableShort = newNotUnsettableShort;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT,
oldNotUnsettableShort, notUnsettableShort));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public String getNotUnsettableString()
{
return notUnsettableString;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableString(String newNotUnsettableString)
{
String oldNotUnsettableString = notUnsettableString;
notUnsettableString = newNotUnsettableString;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING,
oldNotUnsettableString, notUnsettableString));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public VAT getNotUnsettableVAT()
{
return notUnsettableVAT;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public void setNotUnsettableVAT(VAT newNotUnsettableVAT)
{
VAT oldNotUnsettableVAT = notUnsettableVAT;
notUnsettableVAT = newNotUnsettableVAT == null ? NOT_UNSETTABLE_VAT_EDEFAULT : newNotUnsettableVAT;
if (eNotificationRequired())
{
eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT,
oldNotUnsettableVAT, notUnsettableVAT));
}
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN:
return isNotUnsettableBoolean();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE:
return getNotUnsettableByte();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR:
return getNotUnsettableChar();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE:
return getNotUnsettableDate();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE:
return getNotUnsettableDouble();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT:
return getNotUnsettableFloat();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT:
return getNotUnsettableInt();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG:
return getNotUnsettableLong();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT:
return getNotUnsettableShort();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING:
return getNotUnsettableString();
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT:
return getNotUnsettableVAT();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN:
setNotUnsettableBoolean((Boolean)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE:
setNotUnsettableByte((Byte)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR:
setNotUnsettableChar((Character)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE:
setNotUnsettableDate((Date)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE:
setNotUnsettableDouble((Double)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT:
setNotUnsettableFloat((Float)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT:
setNotUnsettableInt((Integer)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG:
setNotUnsettableLong((Long)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT:
setNotUnsettableShort((Short)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING:
setNotUnsettableString((String)newValue);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT:
setNotUnsettableVAT((VAT)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN:
setNotUnsettableBoolean(NOT_UNSETTABLE_BOOLEAN_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE:
setNotUnsettableByte(NOT_UNSETTABLE_BYTE_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR:
setNotUnsettableChar(NOT_UNSETTABLE_CHAR_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE:
setNotUnsettableDate(NOT_UNSETTABLE_DATE_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE:
setNotUnsettableDouble(NOT_UNSETTABLE_DOUBLE_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT:
setNotUnsettableFloat(NOT_UNSETTABLE_FLOAT_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT:
setNotUnsettableInt(NOT_UNSETTABLE_INT_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG:
setNotUnsettableLong(NOT_UNSETTABLE_LONG_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT:
setNotUnsettableShort(NOT_UNSETTABLE_SHORT_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING:
setNotUnsettableString(NOT_UNSETTABLE_STRING_EDEFAULT);
return;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT:
setNotUnsettableVAT(NOT_UNSETTABLE_VAT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN:
return notUnsettableBoolean != NOT_UNSETTABLE_BOOLEAN_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE:
return notUnsettableByte != NOT_UNSETTABLE_BYTE_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR:
return notUnsettableChar != NOT_UNSETTABLE_CHAR_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE:
return NOT_UNSETTABLE_DATE_EDEFAULT == null ? notUnsettableDate != null
: !NOT_UNSETTABLE_DATE_EDEFAULT.equals(notUnsettableDate);
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE:
return notUnsettableDouble != NOT_UNSETTABLE_DOUBLE_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT:
return notUnsettableFloat != NOT_UNSETTABLE_FLOAT_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT:
return notUnsettableInt != NOT_UNSETTABLE_INT_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG:
return notUnsettableLong != NOT_UNSETTABLE_LONG_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT:
return notUnsettableShort != NOT_UNSETTABLE_SHORT_EDEFAULT;
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING:
return NOT_UNSETTABLE_STRING_EDEFAULT == null ? notUnsettableString != null
: !NOT_UNSETTABLE_STRING_EDEFAULT.equals(notUnsettableString);
case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT:
return notUnsettableVAT != NOT_UNSETTABLE_VAT_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public String toString()
{
if (eIsProxy())
{
return super.toString();
}
StringBuffer result = new StringBuffer(super.toString());
result.append(" (notUnsettableBoolean: ");
result.append(notUnsettableBoolean);
result.append(", notUnsettableByte: ");
result.append(notUnsettableByte);
result.append(", notUnsettableChar: ");
result.append(notUnsettableChar);
result.append(", notUnsettableDate: ");
result.append(notUnsettableDate);
result.append(", notUnsettableDouble: ");
result.append(notUnsettableDouble);
result.append(", notUnsettableFloat: ");
result.append(notUnsettableFloat);
result.append(", notUnsettableInt: ");
result.append(notUnsettableInt);
result.append(", notUnsettableLong: ");
result.append(notUnsettableLong);
result.append(", notUnsettableShort: ");
result.append(notUnsettableShort);
result.append(", notUnsettableString: ");
result.append(notUnsettableString);
result.append(", notUnsettableVAT: ");
result.append(notUnsettableVAT);
result.append(')');
return result.toString();
}
} // NotUnsettableImpl