|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBookDriver
org.crosswire.jsword.book.sword.SwordBookDriver
public class SwordBookDriver
This represents all of the Sword Books (aka modules).
The GNU Lesser General Public License for details.
The copyright to this program is held by its authors.
Field Summary | |
---|---|
private static BookDriver |
INSTANCE
A shared instance of this driver. |
private static org.slf4j.Logger |
LOGGER
The log stream |
Constructor Summary | |
---|---|
SwordBookDriver()
Some basic name initialization |
Method Summary | |
---|---|
private Book |
createBook(SwordBookMetaData sbmd)
Create a Book appropriate for the BookMetaData |
void |
delete(Book dead)
Delete this Book from the system. |
Book[] |
getBooks()
Provide books. |
private void |
getBooks(Set<Book> valid,
File bookDir)
|
String |
getDriverName()
A short name for this BookDriver |
static BookDriver |
instance()
Get the singleton instance of this driver. |
boolean |
isDeletable(Book dead)
Is this book able to be deleted. |
static void |
registerNewBook(SwordBookMetaData sbmd)
A helper class for the SwordInstaller to tell us that it has copied a new Book into our install directory |
Methods inherited from class org.crosswire.jsword.book.basic.AbstractBookDriver |
---|
create, getFirstBook, isWritable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final BookDriver INSTANCE
private static final org.slf4j.Logger LOGGER
Constructor Detail |
---|
public SwordBookDriver()
Method Detail |
---|
public String getDriverName()
BookDriver
public Book[] getBooks()
BookProvider
private void getBooks(Set<Book> valid, File bookDir)
public boolean isDeletable(Book dead)
BookDriver
isDeletable
in interface BookDriver
isDeletable
in class AbstractBookDriver
dead
- the book to be deleted
public void delete(Book dead) throws BookException
BookDriver
delete
in interface BookDriver
delete
in class AbstractBookDriver
dead
- the book to be deleted
BookException
- If the Book can't be deleted.public static BookDriver instance()
public static void registerNewBook(SwordBookMetaData sbmd) throws BookException
sbmd
- The SwordBookMetaData object for the new Book
BookException
private Book createBook(SwordBookMetaData sbmd) throws BookException
BookException
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |