|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.validator.util.ValidatorUtils
Basic utility methods. The use of FastHashMap is deprecated and will be replaced in a future release.
| Constructor Summary | |
ValidatorUtils()
|
|
| Method Summary | |
static org.apache.commons.collections.FastHashMap |
copyFastHashMap(org.apache.commons.collections.FastHashMap map)
Makes a deep copy of a FastHashMap if the values
are Msg, Arg,
or Var. |
static String |
getValueAsString(Object bean,
String property)
Convenience method for getting a value from a bean property as a String. |
static String |
replace(String value,
String key,
String replaceValue)
Replace part of a String with another value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ValidatorUtils()
| Method Detail |
public static String replace(String value,
String key,
String replaceValue)
Replace part of a String with another value.
value - String to perform the replacement on.key - The name of the constant.replaceValue - The value of the constant.
public static String getValueAsString(Object bean,
String property)
String. If the property is a String[] or
Collection and it is empty, an empty String
"" is returned. Otherwise, property.toString() is returned. This method
may return null if there was an error retrieving the
property.
bean - property - public static org.apache.commons.collections.FastHashMap copyFastHashMap(org.apache.commons.collections.FastHashMap map)
FastHashMap if the values
are Msg, Arg,
or Var. Otherwise it is a shallow copy.
map - FastHashMap to copy.
FastHashMap that was
passed in.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||