net.sf.mmm.util.value.base
Class AbstractValueValidator<V>

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by 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)

Constructor Summary
AbstractValueValidator()
           
 
Method Summary
 void validate(V value)
          This method validates the given value.
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
doInitialize, getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
doInitialized, getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mmm.util.value.api.ValueValidator
validate
 

Constructor Detail

AbstractValueValidator

public AbstractValueValidator()
Method Detail

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.