org.eclipse.emf.test.models.dbprice.impl
Class PencilTypeImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.test.models.dbprice.impl.PencilTypeImpl
- All Implemented Interfaces:
- Notifier, EObject, InternalEObject, PencilType
public class PencilTypeImpl
- extends EObjectImpl
- implements PencilType
An implementation of the model object 'Pencil Type'.
The following features are implemented:
Field Summary |
protected int |
price
The cached value of the 'Price ' attribute |
protected static int |
PRICE_EDEFAULT
The default value of the 'Price ' attribute |
protected boolean |
priceESet
This is true if the Price attribute has been set |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
PRICE_EDEFAULT
protected static final int PRICE_EDEFAULT
- The default value of the '
Price
' attribute.
- See Also:
getPrice()
,
Constant Field Values
price
protected int price
- The cached value of the '
Price
' attribute.
- See Also:
getPrice()
priceESet
protected boolean priceESet
- This is true if the Price attribute has been set.
PencilTypeImpl
protected PencilTypeImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class EObjectImpl
getPrice
public int getPrice()
-
- Specified by:
getPrice
in interface PencilType
- Returns:
- the value of the 'Price' attribute.
- See Also:
PencilType.isSetPrice()
,
PencilType.unsetPrice()
,
PencilType.setPrice(int)
,
DBPricePackage.getPencilType_Price()
setPrice
public void setPrice(int newPrice)
-
- Specified by:
setPrice
in interface PencilType
- Parameters:
newPrice
- the new value of the 'Price' attribute.- See Also:
PencilType.isSetPrice()
,
PencilType.unsetPrice()
,
PencilType.getPrice()
unsetPrice
public void unsetPrice()
-
- Specified by:
unsetPrice
in interface PencilType
- See Also:
PencilType.isSetPrice()
,
PencilType.getPrice()
,
PencilType.setPrice(int)
isSetPrice
public boolean isSetPrice()
-
- Specified by:
isSetPrice
in interface PencilType
- Returns:
- whether the value of the 'Price' attribute is set.
- See Also:
PencilType.unsetPrice()
,
PencilType.getPrice()
,
PencilType.setPrice(int)
eGet
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
-
- Specified by:
eGet
in interface InternalEObject
- Overrides:
eGet
in class BasicEObjectImpl
- See Also:
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
eSet
public void eSet(int featureID,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface InternalEObject
- Overrides:
eSet
in class BasicEObjectImpl
- See Also:
EObject.eSet(EStructuralFeature, Object)
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset
in interface InternalEObject
- Overrides:
eUnset
in class BasicEObjectImpl
- See Also:
EObject.eUnset(EStructuralFeature)
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet
in interface InternalEObject
- Overrides:
eIsSet
in class BasicEObjectImpl
- See Also:
EObject.eIsSet(EStructuralFeature)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class BasicEObjectImpl