public class ValidatorUtils
extends java.lang.Object
The use of FastHashMap is deprecated and will be replaced in a future release.
| Constructor | Description |
|---|---|
ValidatorUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.commons.collections.FastHashMap |
copyFastHashMap(org.apache.commons.collections.FastHashMap map) |
Deprecated.
This method is not part of Validator's public API.
|
static java.util.Map<java.lang.String,java.lang.Object> |
copyMap(java.util.Map<java.lang.String,java.lang.Object> map) |
Makes a deep copy of a
Map if the values are
Msg, Arg, or Var. |
static java.lang.String |
getValueAsString(java.lang.Object bean,
java.lang.String property) |
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) |
Replace part of a
String with another value. |
public static java.lang.String replace(java.lang.String value,
java.lang.String key,
java.lang.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 java.lang.String getValueAsString(java.lang.Object bean,
java.lang.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 - The bean object.property - The name of the property to access.@Deprecated 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.public static java.util.Map<java.lang.String,java.lang.Object> copyMap(java.util.Map<java.lang.String,java.lang.Object> map)
Map if the values are
Msg, Arg, or Var. Otherwise,
it is a shallow copy.map - The source Map to copy.Map that was passed in.Copyright © 2002–2018. All rights reserved.