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

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


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

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

Index: RemoteBook.java
===================================================================
RCS file: /cvs/jsword/jsword/java/limbo/org/crosswire/jsword/book/remote/RemoteBook.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** RemoteBook.java	27 Jul 2005 23:25:46 -0000	1.17
--- RemoteBook.java	12 Aug 2005 21:00:27 -0000	1.18
***************
*** 136,139 ****
--- 136,154 ----
  
      /* (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