org.springmodules.validation.bean.rule
Class NotNullValidationRule

java.lang.Object
  extended by org.springmodules.validation.bean.rule.AbstractValidationRule
      extended by org.springmodules.validation.bean.rule.NotNullValidationRule
All Implemented Interfaces:
ValidationRule

public class NotNullValidationRule
extends AbstractValidationRule

An AbstractValidationRule implementation that validates and checks that a value is not null.

Author:
Uri Boness

Field Summary
static java.lang.String DEFAULT_ERROR_CODE
           
 
Constructor Summary
NotNullValidationRule()
          Constructs a new NotNullValidationRule.
 
Method Summary
 Condition getCondition()
          Returns the condition of this validation rule.
protected  boolean supportsNullValues()
          Indicates that this validation rule supports null values, that is, that it can validate null values.
 
Methods inherited from class org.springmodules.validation.bean.rule.AbstractValidationRule
createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, createErrorArgumentsResolver, getDefaultErrorMessage, getErrorArguments, getErrorCode, isApplicable, setApplicabilityCondition, setDefaultErrorMessage, setErrorArgumentsResolver, setErrorCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ERROR_CODE

public static final java.lang.String DEFAULT_ERROR_CODE
See Also:
Constant Field Values
Constructor Detail

NotNullValidationRule

public NotNullValidationRule()
Constructs a new NotNullValidationRule.

Method Detail

getCondition

public Condition getCondition()
Returns the condition of this validation rule.

Returns:
The condition of this validation rule.
See Also:
ValidationRule.getCondition()

supportsNullValues

protected boolean supportsNullValues()
Indicates that this validation rule supports null values, that is, that it can validate null values.

Overrides:
supportsNullValues in class AbstractValidationRule
Returns:
whether this validation rule supports null values.
See Also:
AbstractValidationRule.supportsNullValues()


Copyright © 2005. All Rights Reserved.