org.databene.commons.validator
Class NotNullValidator<E>

java.lang.Object
  extended by org.databene.commons.validator.NotNullValidator<E>
All Implemented Interfaces:
Validator<E>

public class NotNullValidator<E>
extends java.lang.Object
implements Validator<E>

Validator implementation that checks if a value is not null.

Created: 01.09.2007 08:53:07

Author:
Volker Bergmann

Constructor Summary
NotNullValidator()
           
 
Method Summary
 boolean valid(E object)
          Checks if an object is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotNullValidator

public NotNullValidator()
Method Detail

valid

public boolean valid(E object)
Description copied from interface: Validator
Checks if an object is valid.

Specified by:
valid in interface Validator<E>
Parameters:
object - the object to validate
Returns:
true if the specified object is valid, otherwise false


Copyright © 2010. All Rights Reserved.