org.apache.cocoon.components.elementprocessor.types
Interface Validator


public interface Validator

This interface allows a client of NumericConverter to apply more restrictive rules to the number that the NumericConverter obtained.

Version:
CVS $Id: Validator.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Marc Johnson (marc_johnson27591@hotmail.com)

Method Summary
 IOException validate(Number number)
          Is this number valid?
 

Method Detail

validate

public IOException validate(Number number)
Is this number valid? If so, return a null IOException. Otherwise, return an IOException whose message explains why the number is not valid.

Parameters:
number - the Number holding the value. Guaranteed non-null
Returns:
a null IOException if the value is ok, else a real IOException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.