public abstract class AbstractValidator extends Object implements Validator
Constructor and Description |
---|
AbstractValidator() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getObjectAs(Object o,
Class<T> type)
Converts the given object to the given class if possible.
|
boolean |
isAlwaysTrue()
Returns true, if this Validator validates all values to true.
The result must not necessarily be correct. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, validate
public <T> T getObjectAs(Object o, Class<T> type) throws org.springframework.core.convert.ConversionException
o
- the object to converttype
- the target typeorg.springframework.core.convert.ConversionException
- if the object couldn't be converted to the
target typepublic boolean isAlwaysTrue()
Validator
isAlwaysTrue
in interface Validator
Validator.isAlwaysTrue()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a