org.eclipse.emf.examples.extlibrary.impl
Class BookImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.examples.extlibrary.impl.ItemImpl
                  extended by org.eclipse.emf.examples.extlibrary.impl.CirculatingItemImpl
                      extended by org.eclipse.emf.examples.extlibrary.impl.BookImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, Book, CirculatingItem, Item, Lendable

public class BookImpl
extends CirculatingItemImpl
implements Book

An implementation of the model object 'Book'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  Writer author
          The cached value of the 'Author' reference
protected  BookCategory category
          The cached value of the 'Category' attribute
protected static BookCategory CATEGORY_EDEFAULT
          The default value of the 'Category' attribute
protected static int CATEGORY_ESETFLAG
          The flag representing whether the Category attribute has been set
protected  int pages
          The cached value of the 'Pages' attribute
protected static int PAGES_EDEFAULT
          The default value of the 'Pages' attribute
protected  java.lang.String title
          The cached value of the 'Title' attribute
protected static java.lang.String TITLE_EDEFAULT
          The default value of the 'Title' attribute
 
Fields inherited from class org.eclipse.emf.examples.extlibrary.impl.CirculatingItemImpl
borrowers, copies, COPIES_EDEFAULT
 
Fields inherited from class org.eclipse.emf.examples.extlibrary.impl.ItemImpl
PUBLICATION_DATE_EDEFAULT, publicationDate
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected BookImpl()
           
 
Method Summary
 Writer basicGetAuthor()
           
 NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Writer getAuthor()
           
 BookCategory getCategory()
           
 int getPages()
           
 java.lang.String getTitle()
           
 boolean isSetCategory()
           
 void setAuthor(Writer newAuthor)
           
 void setCategory(BookCategory newCategory)
           
 void setPages(int newPages)
           
 void setTitle(java.lang.String newTitle)
           
 java.lang.String toString()
           
 void unsetCategory()
           
 
Methods inherited from class org.eclipse.emf.examples.extlibrary.impl.CirculatingItemImpl
eBaseStructuralFeatureID, eDerivedStructuralFeatureID, getBorrowers, getCopies, setCopies
 
Methods inherited from class org.eclipse.emf.examples.extlibrary.impl.ItemImpl
getPublicationDate, setPublicationDate
 
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, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, 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, 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 org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.examples.extlibrary.Item
getPublicationDate, setPublicationDate
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.examples.extlibrary.Lendable
getBorrowers, getCopies, setCopies
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

TITLE_EDEFAULT

protected static final java.lang.String TITLE_EDEFAULT
The default value of the 'Title' attribute.

See Also:
getTitle()

title

protected java.lang.String title
The cached value of the 'Title' attribute.

See Also:
getTitle()

PAGES_EDEFAULT

protected static final int PAGES_EDEFAULT
The default value of the 'Pages' attribute.

See Also:
getPages(), Constant Field Values

pages

protected int pages
The cached value of the 'Pages' attribute.

See Also:
getPages()

CATEGORY_EDEFAULT

protected static final BookCategory CATEGORY_EDEFAULT
The default value of the 'Category' attribute.

See Also:
getCategory()

category

protected BookCategory category
The cached value of the 'Category' attribute.

See Also:
getCategory()

CATEGORY_ESETFLAG

protected static final int CATEGORY_ESETFLAG
The flag representing whether the Category attribute has been set.

See Also:
Constant Field Values

author

protected Writer author
The cached value of the 'Author' reference.

See Also:
getAuthor()
Constructor Detail

BookImpl

protected BookImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class CirculatingItemImpl

getTitle

public java.lang.String getTitle()

Specified by:
getTitle in interface Book
Returns:
the value of the 'Title' attribute.
See Also:
Book.setTitle(String), EXTLibraryPackage.getBook_Title()

setTitle

public void setTitle(java.lang.String newTitle)

Specified by:
setTitle in interface Book
Parameters:
newTitle - the new value of the 'Title' attribute.
See Also:
Book.getTitle()

getPages

public int getPages()

Specified by:
getPages in interface Book
Returns:
the value of the 'Pages' attribute.
See Also:
Book.setPages(int), EXTLibraryPackage.getBook_Pages()

setPages

public void setPages(int newPages)

Specified by:
setPages in interface Book
Parameters:
newPages - the new value of the 'Pages' attribute.
See Also:
Book.getPages()

getCategory

public BookCategory getCategory()

Specified by:
getCategory in interface Book
Returns:
the value of the 'Category' attribute.
See Also:
BookCategory, Book.isSetCategory(), Book.unsetCategory(), Book.setCategory(BookCategory), EXTLibraryPackage.getBook_Category()

setCategory

public void setCategory(BookCategory newCategory)

Specified by:
setCategory in interface Book
Parameters:
newCategory - the new value of the 'Category' attribute.
See Also:
BookCategory, Book.isSetCategory(), Book.unsetCategory(), Book.getCategory()

unsetCategory

public void unsetCategory()

Specified by:
unsetCategory in interface Book
See Also:
Book.isSetCategory(), Book.getCategory(), Book.setCategory(BookCategory)

isSetCategory

public boolean isSetCategory()

Specified by:
isSetCategory in interface Book
Returns:
whether the value of the 'Category' attribute is set.
See Also:
Book.unsetCategory(), Book.getCategory(), Book.setCategory(BookCategory)

getAuthor

public Writer getAuthor()

Specified by:
getAuthor in interface Book
Returns:
the value of the 'Author' reference.
See Also:
Book.setAuthor(Writer), EXTLibraryPackage.getBook_Author(), Writer.getBooks()

basicGetAuthor

public Writer basicGetAuthor()


basicSetAuthor

public NotificationChain basicSetAuthor(Writer newAuthor,
                                        NotificationChain msgs)


setAuthor

public void setAuthor(Writer newAuthor)

Specified by:
setAuthor in interface Book
Parameters:
newAuthor - the new value of the 'Author' reference.
See Also:
Book.getAuthor()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class CirculatingItemImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class CirculatingItemImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class CirculatingItemImpl
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 CirculatingItemImpl
See Also:
EObject.eSet(EStructuralFeature, Object)

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class CirculatingItemImpl
See Also:
EObject.eUnset(EStructuralFeature)

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class CirculatingItemImpl
See Also:
EObject.eIsSet(EStructuralFeature)

toString

public java.lang.String toString()

Overrides:
toString in class CirculatingItemImpl

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.