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

jswordcvs at crosswire.org jswordcvs at crosswire.org
Fri Aug 12 14:00:29 MST 2005


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

Modified Files:
	AbstractPassageBook.java 
Log Message:
Added getValidKey to KeyFactory

Index: AbstractPassageBook.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/basic/AbstractPassageBook.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AbstractPassageBook.java	27 Jul 2005 23:25:46 -0000	1.5
--- AbstractPassageBook.java	12 Aug 2005 21:00:27 -0000	1.6
***************
*** 184,187 ****
--- 184,202 ----
  
      /* (non-Javadoc)
+      * @see org.crosswire.jsword.passage.KeyFactory#isValidKey(java.lang.String)
+      */
+     public Key getValidKey(String name)
+     {
+         try
+         {
+             return getKey(name);
+         }
+         catch (Exception e)
+         {
+             return createEmptyKeyList();
+         }
+     }
+ 
+     /* (non-Javadoc)
       * @see org.crosswire.jsword.passage.KeyFactory#getKey(java.lang.String)
       */



More information about the jsword-svn mailing list