org.apache.commons.validator
Class ValidatorUtil

java.lang.Object
  extended by org.apache.commons.validator.ValidatorUtil

Deprecated. This class has moved to the org.apache.commons.validator.util package.

public class ValidatorUtil
extends java.lang.Object

Basic utility methods.


Field Summary
protected static org.apache.commons.logging.Log log
          Deprecated. Subclasses should use their own logging instance.
static java.lang.String REGEXP_DELIMITER
          Deprecated. Use "/" directly.
 
Constructor Summary
ValidatorUtil()
          Deprecated.  
 
Method Summary
static org.apache.commons.collections.FastHashMap copyFastHashMap(org.apache.commons.collections.FastHashMap map)
          Deprecated. Makes a deep copy of a FastHashMap if the values are String, Msg, Arg, or Var.
static java.lang.String getDelimitedRegExp(java.lang.String regexp)
          Deprecated. Use "/" directly.
static java.lang.String getValueAsString(java.lang.Object bean, java.lang.String property)
          Deprecated. Convenience method for getting a value from a bean property as a String.
static java.lang.String replace(java.lang.String value, java.lang.String key, java.lang.String replaceValue)
          Deprecated. 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
 

Field Detail

REGEXP_DELIMITER

public static final java.lang.String REGEXP_DELIMITER
Deprecated. Use "/" directly.
Delimiter to put around a regular expression following Perl 5 syntax.

See Also:
Constant Field Values

log

protected static org.apache.commons.logging.Log log
Deprecated. Subclasses should use their own logging instance.
Logger.

Constructor Detail

ValidatorUtil

public ValidatorUtil()
Deprecated. 
Method Detail

replace

public static java.lang.String replace(java.lang.String value,
                                       java.lang.String key,
                                       java.lang.String replaceValue)
Deprecated. 

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.

getValueAsString

public static java.lang.String getValueAsString(java.lang.Object bean,
                                                java.lang.String property)
Deprecated. 
Convenience method for getting a value from a bean property as a String.


copyFastHashMap

public static org.apache.commons.collections.FastHashMap copyFastHashMap(org.apache.commons.collections.FastHashMap map)
Deprecated. 
Makes a deep copy of a 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.

getDelimitedRegExp

public static java.lang.String getDelimitedRegExp(java.lang.String regexp)
Deprecated. Use "/" directly.

Adds a '/' on either side of the regular expression.



Copyright (c) 2001-2004 Apache Software Foundation