org.fopps.model
Interface Validator

All Known Implementing Classes:
MinMaxValidator

public interface Validator

Validator is the base interface for all validators. It is used by {}@link NumericFeature} to ensure valid values.


Method Summary
 boolean check(java.lang.Number pNumber)
          Checks given value agaisnt the validator's rules.
 java.lang.Number firstValue()
          Returns the first valid number of the validator.
 

Method Detail

check

public boolean check(java.lang.Number pNumber)
              throws ValidatorException
Checks given value agaisnt the validator's rules.

Throws:
ValidatorException, - if value is invalid
ValidatorException

firstValue

public java.lang.Number firstValue()
Returns the first valid number of the validator. This is useful to set an initial value.



Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.