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

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.LibraryImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, Addressable, Library

public class LibraryImpl
extends EObjectImpl
implements Library

An implementation of the model object 'Library'.

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  java.lang.String address
          The cached value of the 'Address' attribute
protected static java.lang.String ADDRESS_EDEFAULT
          The default value of the 'Address' attribute
protected  EList<Book> books
          The cached value of the 'Books' reference list
protected  EList<Library> branches
          The cached value of the 'Branches' containment reference list
protected  java.lang.String name
          The cached value of the 'Name' attribute
protected static java.lang.String NAME_EDEFAULT
          The default value of the 'Name' attribute
protected  FeatureMap people
          The cached value of the 'People' attribute list
protected  EList<Item> stock
          The cached value of the 'Stock' containment reference list
 
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 LibraryImpl()
           
 
Method Summary
 Library basicGetParentBranch()
           
 NotificationChain basicSetParentBranch(Library newParentBranch, NotificationChain msgs)
           
 NotificationChain eBasicRemoveFromContainerFeature(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)
           
 java.lang.String getAddress()
           
 EList<Book> getBooks()
           
 EList<Borrower> getBorrowers()
           
 EList<Library> getBranches()
           
 EList<Employee> getEmployees()
           
 java.lang.String getName()
           
 Library getParentBranch()
           
 FeatureMap getPeople()
           
 EList<Item> getStock()
           
 EList<Writer> getWriters()
           
 void setAddress(java.lang.String newAddress)
           
 void setName(java.lang.String newName)
           
 void setParentBranch(Library newParentBranch)
           
 java.lang.String toString()
           
 
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, 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, 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.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

ADDRESS_EDEFAULT

protected static final java.lang.String ADDRESS_EDEFAULT
The default value of the 'Address' attribute.

See Also:
getAddress()

address

protected java.lang.String address
The cached value of the 'Address' attribute.

See Also:
getAddress()

NAME_EDEFAULT

protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()

name

protected java.lang.String name
The cached value of the 'Name' attribute.

See Also:
getName()

stock

protected EList<Item> stock
The cached value of the 'Stock' containment reference list.

See Also:
getStock()

books

protected EList<Book> books
The cached value of the 'Books' reference list.

See Also:
getBooks()

branches

protected EList<Library> branches
The cached value of the 'Branches' containment reference list.

See Also:
getBranches()

people

protected FeatureMap people
The cached value of the 'People' attribute list.

See Also:
getPeople()
Constructor Detail

LibraryImpl

protected LibraryImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EObjectImpl

getAddress

public java.lang.String getAddress()

Specified by:
getAddress in interface Addressable
Returns:
the value of the 'Address' attribute.
See Also:
Addressable.setAddress(String), EXTLibraryPackage.getAddressable_Address()

setAddress

public void setAddress(java.lang.String newAddress)

Specified by:
setAddress in interface Addressable
Parameters:
newAddress - the new value of the 'Address' attribute.
See Also:
Addressable.getAddress()

getName

public java.lang.String getName()

Specified by:
getName in interface Library
Returns:
the value of the 'Name' attribute.
See Also:
Library.setName(String), EXTLibraryPackage.getLibrary_Name()

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface Library
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
Library.getName()

getWriters

public EList<Writer> getWriters()

Specified by:
getWriters in interface Library
Returns:
the value of the 'Writers' containment reference list.
See Also:
EXTLibraryPackage.getLibrary_Writers()

getEmployees

public EList<Employee> getEmployees()

Specified by:
getEmployees in interface Library
Returns:
the value of the 'Employees' containment reference list.
See Also:
EXTLibraryPackage.getLibrary_Employees()

getBorrowers

public EList<Borrower> getBorrowers()

Specified by:
getBorrowers in interface Library
Returns:
the value of the 'Borrowers' containment reference list.
See Also:
EXTLibraryPackage.getLibrary_Borrowers()

getStock

public EList<Item> getStock()

Specified by:
getStock in interface Library
Returns:
the value of the 'Stock' containment reference list.
See Also:
EXTLibraryPackage.getLibrary_Stock()

getBooks

public EList<Book> getBooks()

Specified by:
getBooks in interface Library
Returns:
the value of the 'Books' reference list.
See Also:
EXTLibraryPackage.getLibrary_Books()

getBranches

public EList<Library> getBranches()

Specified by:
getBranches in interface Library
Returns:
the value of the 'Branches' containment reference list.
See Also:
EXTLibraryPackage.getLibrary_Branches(), Library.getParentBranch()

getParentBranch

public Library getParentBranch()

Specified by:
getParentBranch in interface Library
Returns:
the value of the 'Parent Branch' container reference.
See Also:
Library.setParentBranch(Library), EXTLibraryPackage.getLibrary_ParentBranch(), Library.getBranches()

basicGetParentBranch

public Library basicGetParentBranch()


basicSetParentBranch

public NotificationChain basicSetParentBranch(Library newParentBranch,
                                              NotificationChain msgs)


setParentBranch

public void setParentBranch(Library newParentBranch)

Specified by:
setParentBranch in interface Library
Parameters:
newParentBranch - the new value of the 'Parent Branch' container reference.
See Also:
Library.getParentBranch()

getPeople

public FeatureMap getPeople()

Specified by:
getPeople in interface Library
Returns:
the value of the 'People' attribute list.
See Also:
EXTLibraryPackage.getLibrary_People()

eInverseAdd

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

Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

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

Overrides:
eInverseRemove in class BasicEObjectImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class BasicEObjectImpl

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

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