[Tynstep-svn] r161 - trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Sat Jul 31 02:27:25 MST 2010


Author: ChrisBurrell
Date: 2010-07-31 02:27:25 -0700 (Sat, 31 Jul 2010)
New Revision: 161

Removed:
   trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/OsisUtils.java
   trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/StringUtils.java
Log:
commiting fix to remove unecessary compile files causing assembler to overwrite gwtp compilation

Deleted: trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/OsisUtils.java
===================================================================
--- trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/OsisUtils.java	2010-07-31 09:26:49 UTC (rev 160)
+++ trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/OsisUtils.java	2010-07-31 09:27:25 UTC (rev 161)
@@ -1,42 +0,0 @@
-package com.tyndalehouse.step.web.client.common;
-
-import static com.tyndalehouse.step.web.client.common.StringUtils.isEmpty;
-
-/**
- * Some helper functions for Osis parsing
- * 
- * @author CJBurrell
- * 
- */
-public class OsisUtils {
-    private static final char OSIS_REFERENCE_SEPARATOR = '.';
-
-    /**
-     * hiding implementation
-     */
-    private OsisUtils() {
-        // no implementation
-    }
-
-    /**
-     * give an osisID, we extract and return the verse number
-     * 
-     * @param osisId
-     *            the osis id
-     * @return the verse number
-     */
-    public static String getVerseNumberFromOsisId(final String osisId) {
-        if (isEmpty(osisId)) {
-            return "";
-        }
-
-        // assume we have at just two '.'
-        final int firstIndex = osisId.indexOf(OSIS_REFERENCE_SEPARATOR) + 1;
-        final int lastOsisPart = osisId.lastIndexOf(OSIS_REFERENCE_SEPARATOR) + 1;
-        if (lastOsisPart > osisId.length() || firstIndex == lastOsisPart) {
-            return "";
-        }
-
-        return osisId.substring(lastOsisPart);
-    }
-}

Deleted: trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/StringUtils.java
===================================================================
--- trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/StringUtils.java	2010-07-31 09:26:49 UTC (rev 160)
+++ trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/client/common/StringUtils.java	2010-07-31 09:27:25 UTC (rev 161)
@@ -1,29 +0,0 @@
-package com.tyndalehouse.step.web.client.common;
-
-public class StringUtils {
-    /**
-     * hiding implementation
-     */
-    private StringUtils() {
-        // no implementation
-    }
-
-    /**
-     * @param s
-     *            the string to evaluate
-     * @return true if s == null or s.length == 0
-     */
-    public static boolean isEmpty(final String s) {
-        return s == null || s.length() == 0;
-    }
-
-    /**
-     * @param s
-     *            the string to evaluate
-     * @return true if !(s == null or s.length == 0)
-     */
-    public static boolean isNotEmpty(final String s) {
-        return !isEmpty(s);
-    }
-
-}




More information about the Tynstep-svn mailing list