org.apache.commons.validator
public class ValidatorUtil extends Object
Deprecated: This class has moved to the org.apache.commons.validator.util package.
Basic utility methods.| Field Summary | |
|---|---|
| protected static Log | log
Logger. |
| static String | REGEXP_DELIMITER
Delimiter to put around a regular expression following Perl 5 syntax. |
| Method Summary | |
|---|---|
| static FastHashMap | copyFastHashMap(FastHashMap map)
Makes a deep copy of a FastHashMap if the values
are String, Msg, Arg,
or Var. |
| static String | getDelimitedRegExp(String regexp)
Adds a '/' on either side of the regular expression. |
| 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 |
Deprecated: Subclasses should use their own logging instance.
Logger.Deprecated: Use "/" directly.
Delimiter to put around a regular expression following Perl 5 syntax.FastHashMap if the values
are String, 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.
Deprecated: Use "/" directly.
Adds a '/' on either side of the regular expression.String.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.