[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/install s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Fri Mar 18 18:56:49 MST 2005
Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install
In directory www.crosswire.org:/tmp/cvs-serv10359/java/jsword/org/crosswire/jsword/book/install
Modified Files:
Installer.java
Log Message:
Made Book the primary interface to a module and put BookMetaData within it. All of BookMetaData is accessible through the Book interface.
Index: Installer.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/Installer.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Installer.java 26 Jan 2005 00:57:33 -0000 1.9
--- Installer.java 19 Mar 2005 01:56:47 -0000 1.10
***************
*** 4,9 ****
import java.util.List;
import org.crosswire.jsword.book.BookList;
- import org.crosswire.jsword.book.BookMetaData;
/**
--- 4,9 ----
import java.util.List;
+ import org.crosswire.jsword.book.Book;
import org.crosswire.jsword.book.BookList;
/**
***************
*** 46,53 ****
/**
! * @param bmd The book meta-data to get a URL from.
* @return the remote url for the BookMetaData
*/
! public URL toRemoteURL(BookMetaData bmd);
/**
--- 46,53 ----
/**
! * @param book The book meta-data to get a URL from.
* @return the remote url for the BookMetaData
*/
! public URL toRemoteURL(Book book);
/**
***************
*** 58,70 ****
* @see Installer#reloadBookList()
*/
! public List getBookMetaDatas();
/**
* Return true if the module is not installed or there is a newer
* version to install.
! * @param bmd The book meta-data to check on.
* @return whether there is a newer version to install
*/
! public boolean isNewer(BookMetaData bmd);
/**
--- 58,70 ----
* @see Installer#reloadBookList()
*/
! public List getBooks();
/**
* Return true if the module is not installed or there is a newer
* version to install.
! * @param book The book meta-data to check on.
* @return whether there is a newer version to install
*/
! public boolean isNewer(Book book);
/**
***************
*** 80,86 ****
* The name should be one from an index list retrieved from getIndex() or
* reloadIndex()
! * @param bmd The module to install
*/
! public void install(BookMetaData bmd) throws InstallException;
/**
--- 80,86 ----
* The name should be one from an index list retrieved from getIndex() or
* reloadIndex()
! * @param book The module to install
*/
! public void install(Book book) throws InstallException;
/**
***************
*** 88,95 ****
* The installation of the search index is the responsibility of the
* IndexManager.
! * @param bmd The book to download a search index for.
* @param tempDest A temporary URL for downloading to. Passed to the
* IndexManager for installation.
*/
! public void downloadSearchIndex(BookMetaData bmd, URL tempDest) throws InstallException;
}
--- 88,95 ----
* The installation of the search index is the responsibility of the
* IndexManager.
! * @param book The book to download a search index for.
* @param tempDest A temporary URL for downloading to. Passed to the
* IndexManager for installation.
*/
! public void downloadSearchIndex(Book book, URL tempDest) throws InstallException;
}
More information about the jsword-svn
mailing list