java.lang.Object
com.thermidor.util.StringUtil
- public class StringUtil
- extends java.lang.Object
String utilities
- Version:
- 1.0
|
Constructor Summary |
private |
StringUtil()
Creates new StringUtil |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtil
private StringUtil()
- Creates new StringUtil
macroReplace
public static java.lang.String macroReplace(java.lang.String src,
java.lang.Object[] params,
java.lang.String startChar,
java.lang.String endChar)
throws java.lang.NumberFormatException
- Performs macro substitution on a String.
The source string contains macros in the form @n@, where n is a number.
This number references an entry in an Object array, the String
representation of which, is substituted for the macro.
className
public static java.lang.String className(java.lang.Class clazz)
- Picks out the name of a class from a fully qualified class.
(Possibly a better class for this ClassUtils??!)
isEmpty
public static final java.lang.String isEmpty(java.lang.String val)
- This utility operation is used to to provide equivalence between null and
the empty string. In those validation steps where it is appropriate.