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.
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com)
Method Summary |
java.io.IOException |
validate(java.lang.Number number)
Is this number valid? |
validate
public java.io.IOException validate(java.lang.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-2002 Apache Software Foundation. All Rights Reserved.