public abstract class AbstractBookDriver extends Object implements BookDriver
The GNU Lesser General Public License for details.
Constructor and Description |
---|
AbstractBookDriver() |
Modifier and Type | Method and Description |
---|---|
Book |
create(Book source)
Create a new Book based on a source.
|
void |
delete(Book dead)
Delete this Book from the system.
|
Book |
getFirstBook()
Provide the first book.
|
boolean |
isDeletable(Book dead)
Is this book able to be deleted.
|
boolean |
isWritable()
Is this name capable of creating writing data in the correct format as
well as reading it?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDriverName
getBooks
public boolean isWritable()
BookDriver
isWritable
in interface BookDriver
public Book create(Book source) throws BookException
BookDriver
create
in interface BookDriver
source
- The Book from which to copy dataBookException
- If the name is not validpublic boolean isDeletable(Book dead)
BookDriver
isDeletable
in interface BookDriver
dead
- the book to be deletedpublic void delete(Book dead) throws BookException
BookDriver
delete
in interface BookDriver
dead
- the book to be deletedBookException
- If the Book can't be deleted.public Book getFirstBook()
BookProvider
getFirstBook
in interface BookProvider