net.sf.mmm.util.value.base
Class PojoValidatorDummy
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.value.base.AbstractValueValidator<Object>
net.sf.mmm.util.value.base.PojoValidatorDummy
- All Implemented Interfaces:
- PojoValidator, ValueValidator<Object>
public class PojoValidatorDummy
- extends AbstractValueValidator<Object>
- implements PojoValidator
This is a dummy implementation of PojoValidator that accepts all
objects as valid.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
|
Method Summary |
void |
validate(Object value,
Object valueSource)
This method validates the given value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PojoValidatorDummy
public PojoValidatorDummy()
- The constructor.
validate
public void validate(Object value,
Object valueSource)
throws RuntimeException
- This method validates the given
value. If the value is
invalid, a RuntimeException is thrown. Otherwise this method will
return without any side-effect.
- Specified by:
validate in interface ValueValidator<Object>
- Parameters:
value - is the value to validate.valueSource - describes the origin of the given value.
This may be the filename where the value was read from, an XPath
where the value was located in an XML document, etc. It can be used
in exceptions thrown if the value is invalid. This will
help to find the problem easier. It may be null if
there is no helpful source available but you should prefer
ValueValidator.validate(Object) in such case.
- Throws:
RuntimeException - if the given value in invalid.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.