net.sf.mmm.util.value.base
Class AbstractValueValidator<V>
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.value.base.AbstractValueValidator<V>
- Type Parameters:
V - is the generic type of the value to validate.
- All Implemented Interfaces:
- ValueValidator<V>
- Direct Known Subclasses:
- PojoValidatorDummy, ValueValidatorNotNull, ValueValidatorNumberRange
public abstract class AbstractValueValidator<V>
- extends AbstractLoggableComponent
- implements ValueValidator<V>
This is the abstract-base implementation of the ValueValidator
interface.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
|
Method Summary |
void |
validate(V value)
This method validates the given value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValueValidator
public AbstractValueValidator()
validate
public void validate(V value)
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<V>
- Parameters:
value - is the value to validate.
- Throws:
RuntimeException - if the given value in invalid.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.