org.apache.commons.validator.util
public class ValidatorUtils extends Object
Field Summary | |
---|---|
static Log | log
Logger. |
Method Summary | |
---|---|
static FastHashMap | copyFastHashMap(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 |
FastHashMap
if the values
are Msg
, Arg
,
or Var
. Otherwise it is a shallow copy.
Parameters: map FastHashMap
to copy.
Returns: FastHashMap A copy of the FastHashMap
that was
passed in.
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.Parameters: bean property
Replace part of a String
with another value.
Parameters: value String
to perform the replacement on. key The name of the constant. replaceValue The value of the constant.