Changeset 10783
- Timestamp:
- 2005-10-27T15:23:12+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java
r8824 r10783 10 10 public class XSLTUtil { 11 11 12 /* some tests */ 12 13 public static boolean equals(String s1, String s2) { 13 14 return s1.equals(s2); 14 15 } 15 16 public static boolean notEquals(String s1, String s2) { 17 return !s1.equals(s2); 18 } 16 19 public static boolean exists(String s1, String s2) { 17 20 return !s1.equals(""); … … 26 29 return s1.endsWith(s2); 27 30 } 28 31 public static boolean lessThan(String s1, String s2) { 32 return (s1.compareTo(s2) < 0); 33 } 34 public static boolean lessThanOrEquals(String s1, String s2) { 35 return (s1.compareTo(s2) <= 0); 36 } 37 public static boolean greaterThan(String s1, String s2) { 38 return (s1.compareTo(s2) > 0); 39 } 40 public static boolean greaterThanOrEquals(String s1, String s2) { 41 return (s1.compareTo(s2) >= 0); 42 } 43 44 /* some preprocessing functions */ 29 45 public static String toLower(String orig) { 30 46 return orig.toLowerCase();
Note:
See TracChangeset
for help on using the changeset viewer.