[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/sword 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/sword
In directory www.crosswire.org:/tmp/cvs-serv772/java/jsword/org/crosswire/jsword/book/sword

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

Index: SwordDictionary.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/sword/SwordDictionary.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** SwordDictionary.java	27 Jul 2005 23:25:45 -0000	1.46
--- SwordDictionary.java	12 Aug 2005 21:00:27 -0000	1.47
***************
*** 169,172 ****
--- 169,187 ----
  
      /* (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