Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.util
Class StringUtil  view StringUtil download StringUtil.java

java.lang.Object
  extended bycom.thermidor.util.StringUtil

public class StringUtil
extends java.lang.Object

String utilities

Version:
1.0

Constructor Summary
private StringUtil()
          Creates new StringUtil
 
Method Summary
static java.lang.String className(java.lang.Class clazz)
          Picks out the name of a class from a fully qualified class.
static java.lang.String isEmpty(java.lang.String val)
          This utility operation is used to to provide equivalence between null and the empty string.
static java.lang.String macroReplace(java.lang.String src, java.lang.Object[] params, java.lang.String startChar, java.lang.String endChar)
          Performs macro substitution on a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

private StringUtil()
Creates new StringUtil

Method Detail

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.