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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com)
validate
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-2010 The Apache Software Foundation. All Rights Reserved.