org.eclipse.emf.examples.extlibrary
Interface Book

All Superinterfaces:
CirculatingItem, EObject, Item, Lendable, Notifier
All Known Implementing Classes:
BookImpl

public interface Book
extends CirculatingItem

A representation of the model object 'Book'.

The following features are supported:

See Also:
EXTLibraryPackage.getBook()

Method Summary
 Writer getAuthor()
          Returns the value of the 'Author' reference.
 BookCategory getCategory()
          Returns the value of the 'Category' attribute.
 int getPages()
          Returns the value of the 'Pages' attribute.
 java.lang.String getTitle()
          Returns the value of the 'Title' attribute
 boolean isSetCategory()
          Returns whether the value of the 'Category' attribute is set
 void setAuthor(Writer value)
          Sets the value of the 'Author' reference
 void setCategory(BookCategory value)
          Sets the value of the 'Category' attribute
 void setPages(int value)
          Sets the value of the 'Pages' attribute
 void setTitle(java.lang.String value)
          Sets the value of the 'Title' attribute
 void unsetCategory()
          Unsets the value of the 'Category' attribute
 
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
 

Method Detail

getTitle

java.lang.String getTitle()
Returns the value of the 'Title' attribute.

Returns:
the value of the 'Title' attribute.
See Also:
setTitle(String), EXTLibraryPackage.getBook_Title()

setTitle

void setTitle(java.lang.String value)
Sets the value of the 'Title' attribute.

Parameters:
value - the new value of the 'Title' attribute.
See Also:
getTitle()

getPages

int getPages()
Returns the value of the 'Pages' attribute. The default value is "100".

Returns:
the value of the 'Pages' attribute.
See Also:
setPages(int), EXTLibraryPackage.getBook_Pages()

setPages

void setPages(int value)
Sets the value of the 'Pages' attribute.

Parameters:
value - the new value of the 'Pages' attribute.
See Also:
getPages()

getCategory

BookCategory getCategory()
Returns the value of the 'Category' attribute. The literals are from the enumeration BookCategory.

Returns:
the value of the 'Category' attribute.
See Also:
BookCategory, isSetCategory(), unsetCategory(), setCategory(BookCategory), EXTLibraryPackage.getBook_Category()

setCategory

void setCategory(BookCategory value)
Sets the value of the 'Category' attribute.

Parameters:
value - the new value of the 'Category' attribute.
See Also:
BookCategory, isSetCategory(), unsetCategory(), getCategory()

unsetCategory

void unsetCategory()
Unsets the value of the 'Category' attribute.

See Also:
isSetCategory(), getCategory(), setCategory(BookCategory)

isSetCategory

boolean isSetCategory()
Returns whether the value of the 'Category' attribute is set.

Returns:
whether the value of the 'Category' attribute is set.
See Also:
unsetCategory(), getCategory(), setCategory(BookCategory)

getAuthor

Writer getAuthor()
Returns the value of the 'Author' reference. It is bidirectional and its opposite is 'Books'.

Returns:
the value of the 'Author' reference.
See Also:
setAuthor(Writer), EXTLibraryPackage.getBook_Author(), Writer.getBooks()

setAuthor

void setAuthor(Writer value)
Sets the value of the 'Author' reference.

Parameters:
value - the new value of the 'Author' reference.
See Also:
getAuthor()

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