[jsword-svn] jsword/java/limbo/org/crosswire/jsword/book/stub 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/stub
In directory www.crosswire.org:/tmp/cvs-serv772/java/limbo/org/crosswire/jsword/book/stub
Modified Files:
StubDictionary.java StubDictionaryKeyFactory.java
Log Message:
Added getValidKey to KeyFactory
Index: StubDictionaryKeyFactory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/limbo/org/crosswire/jsword/book/stub/StubDictionaryKeyFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** StubDictionaryKeyFactory.java 27 Jul 2005 23:25:45 -0000 1.8
--- StubDictionaryKeyFactory.java 12 Aug 2005 21:00:27 -0000 1.9
***************
*** 49,52 ****
--- 49,67 ----
/* (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)
*/
Index: StubDictionary.java
===================================================================
RCS file: /cvs/jsword/jsword/java/limbo/org/crosswire/jsword/book/stub/StubDictionary.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** StubDictionary.java 27 Jul 2005 23:25:45 -0000 1.14
--- StubDictionary.java 12 Aug 2005 21:00:27 -0000 1.15
***************
*** 104,107 ****
--- 104,122 ----
/* (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