Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.book
Interface BibleDriver  view BibleDriver download BibleDriver.java

All Known Implementing Classes:
AbstractBibleDriver

public interface BibleDriver

The BibleDriver class is an gateway to all the instances of the Books controlled by this driver.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.

Version:
D6.I6.T2

Method Summary
 int countBibles()
          How many Bibles does this driver own
 Bible createBible(java.lang.String name)
          Create a new blank Bible ready for writing
 void deleteBible(java.lang.String name)
          Delete Book
 boolean exists(java.lang.String name)
          Does the named Bible exist?
 Bible getBible(java.lang.String name)
          Fetch a currently existing Bible, read-only
 java.lang.String[] getBibleNames()
          Get a list of the Books available from the driver
 java.lang.String getDriverName()
          A simple driver description name.
 void renameBible(java.lang.String old_name, java.lang.String new_name)
          Rename a Book.
 

Method Detail

getDriverName

public java.lang.String getDriverName()
A simple driver description name. This should be callable before init() is called, so that we can find the friendly name of a Bible without having to fully initialize it.


getBibleNames

public java.lang.String[] getBibleNames()
                                 throws BookException
Get a list of the Books available from the driver


countBibles

public int countBibles()
How many Bibles does this driver own


exists

public boolean exists(java.lang.String name)
Does the named Bible exist?


getBible

public Bible getBible(java.lang.String name)
               throws BookException
Fetch a currently existing Bible, read-only


createBible

public Bible createBible(java.lang.String name)
                  throws BookException
Create a new blank Bible ready for writing


renameBible

public void renameBible(java.lang.String old_name,
                        java.lang.String new_name)
                 throws BookException
Rename a Book.


deleteBible

public void deleteBible(java.lang.String name)
                 throws BookException
Delete Book