public final class StringUtil extends Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
StringUtil.PropertySource
A source of property values. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected static boolean | 
LAZY_IF_EMPTY  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
doPropertySubstitution(String text,
                      Properties properties)
Substitutes ${key,default} place holders with their property values. 
 | 
static String | 
doPropertySubstitution(String text,
                      StringUtil.PropertySource properties)
Substitutes ${key,default} place holders with their property values. 
 | 
static boolean | 
hasValue(Object obj)
Returns whether the given object has a value. 
 | 
public static boolean hasValue(Object obj)
obj - the object to testpublic static String doPropertySubstitution(String text, Properties properties) throws IllegalArgumentException
text - the template textproperties - the user provided property valuesIllegalArgumentException - if a property value does not existpublic static String doPropertySubstitution(String text, StringUtil.PropertySource properties) throws IllegalArgumentException
text - the template textproperties - the user provided property valuesIllegalArgumentException - if a property value does not exist