Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.validator.ValidatorUtil
public class ValidatorUtil
extends java.lang.Object
Field Summary | |
static String |
|
protected static Log |
|
Method Summary | |
static FastHashMap |
|
static String |
|
static String |
|
static String |
|
public static final String REGEXP_DELIMITER
Deprecated. Use "/" directly.
Delimiter to put around a regular expression following Perl 5 syntax.
protected static Log log
Deprecated. Subclasses should use their own logging instance.
Logger.
public static FastHashMap copyFastHashMap(FastHashMap map)
Makes a deep copy of aFastHashMap
if the values areString
,Msg
,Arg
, orVar
. Otherwise it is a shallow copy.
- Parameters:
map
-FastHashMap
to copy.
- Returns:
- FastHashMap A copy of the
FastHashMap
that was passed in.
public static String getDelimitedRegExp(String regexp)
Deprecated. Use "/" directly.
Adds a '/' on either side of the regular expression.
public static String getValueAsString(Object bean, String property)
Convenience method for getting a value from a bean property as aString
.
public static String replace(String value, String key, String replaceValue)
Replace part of aString
with another value.
- Parameters:
value
-String
to perform the replacement on.key
- The name of the constant.replaceValue
- The value of the constant.