ninja.validation
Class Validators.NumberValidator

java.lang.Object
  extended by ninja.validation.Validators.NumberValidator
All Implemented Interfaces:
Validator<Number>
Enclosing class:
Validators

public static class Validators.NumberValidator
extends Object
implements Validator<Number>


Constructor Summary
Validators.NumberValidator(NumberValue number)
           
 
Method Summary
 Class<Number> getValidatedType()
          Get the type that this validator validates
 void validate(Number value, String field, Validation validation)
          Validate the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validators.NumberValidator

public Validators.NumberValidator(NumberValue number)
Method Detail

validate

public void validate(Number value,
                     String field,
                     Validation validation)
Description copied from interface: Validator
Validate the given value

Specified by:
validate in interface Validator<Number>
Parameters:
value - The value, may be null
field - The name of the field being validated, if applicable
validation - The validation context

getValidatedType

public Class<Number> getValidatedType()
Description copied from interface: Validator
Get the type that this validator validates

Specified by:
getValidatedType in interface Validator<Number>
Returns:
The type that the validator validates


Copyright © 2012. All Rights Reserved.