[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sun Jan 8 17:52:16 MST 2006


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book
In directory www.crosswire.org:/tmp/cvs-serv18652/java/jsword/org/crosswire/jsword/book

Modified Files:
	BookMetaData.java BookCategory.java 
Log Message:
Fixed a release bug.
Finished the BookCategory implementation.

Index: BookCategory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/BookCategory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BookCategory.java	3 Jan 2006 13:25:34 -0000	1.4
--- BookCategory.java	9 Jan 2006 00:52:14 -0000	1.5
***************
*** 62,65 ****
--- 62,70 ----
  
      /**
+      * Books that are questionable.
+      */
+     public static final BookCategory QUESTIONABLE = new BookCategory("Cults / Unorthodox / Questionable Material"); //$NON-NLS-1$
+ 
+     /**
       * Books that are not any of the above
       */
***************
*** 154,157 ****
--- 159,163 ----
          DAILY_DEVOTIONS,
          GLOSSARY,
+         QUESTIONABLE,
          OTHER,
      };

Index: BookMetaData.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/BookMetaData.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** BookMetaData.java	2 Jan 2006 03:40:08 -0000	1.32
--- BookMetaData.java	9 Jan 2006 00:52:14 -0000	1.33
***************
*** 99,102 ****
--- 99,135 ----
  
      /**
+      * Indicate whether this book is supported by JSword.
+      * Since the expectation is that all books are supported,
+      * abstract implementations should return true and let
+      * specific implementations return false if they cannot
+      * support the book.
+      * 
+      * @return true if the book is supported
+      */
+     public boolean isSupported();
+ 
+     /**
+      * Indicate whether this book is enciphered and without a key.
+      * Since the expectation is that most books are unenciphered,
+      * abstract implementations should return false and let
+      * specific implementations return true otherwise.
+      * 
+      * @return true if the book is enciphered
+      */
+     public boolean isEnciphered();
+ 
+     /**
+      * Indicate whether this book is questionable. A book may
+      * be deemed questionable if it's quality or content has not
+      * been confirmed.
+      * Since the expectation is that all books are not questionable,
+      * abstract implementations should return false and let
+      * specific implementations return true if the book is questionable.
+      * 
+      * @return true if the book is questionable
+      */
+     public boolean isQuestionable();
+ 
+     /**
       * Calculated field: The name of the name, which could be helpful to
       * distinguish similar Books available through 2 BookDrivers.



More information about the jsword-svn mailing list