Method Summary |
protected void |
doAssertValidity(java.lang.String testValue)
Determine whether a testValue meets the criteria specified
in the constraints defined for this validator |
protected void |
doInit(java.util.Map paramMap)
|
protected java.lang.String |
getInvalidNumberMessage()
|
void |
init(java.util.Map paramMap)
Extract the relevant parameters from the constraints listed
in tags within the intake.xml file. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
INVALID_NUMBER
private static java.lang.String INVALID_NUMBER
minValue
private java.math.BigDecimal minValue
minValueMessage
protected java.lang.String minValueMessage
maxValue
private java.math.BigDecimal maxValue
maxValueMessage
protected java.lang.String maxValueMessage
invalidNumberMessage
protected java.lang.String invalidNumberMessage
NumberValidator
public NumberValidator(java.util.Map paramMap)
throws TurbineException
NumberValidator
public NumberValidator()
init
public void init(java.util.Map paramMap)
throws TurbineException
- Extract the relevant parameters from the constraints listed
in tags within the intake.xml file.
- Overrides:
init
in class DefaultValidator
- Parameters:
inputParameters
- a Map
of InputParam
's
containing constraints on the input.- Throws:
TurbineException
- if an error occurs
doInit
protected void doInit(java.util.Map paramMap)
getInvalidNumberMessage
protected java.lang.String getInvalidNumberMessage()
doAssertValidity
protected void doAssertValidity(java.lang.String testValue)
throws ValidationException
- Determine whether a testValue meets the criteria specified
in the constraints defined for this validator
- Overrides:
doAssertValidity
in class DefaultValidator
- Parameters:
testValue
- a String
to be tested- Throws:
ValidationException
- containing an error message if the
testValue did not pass the validation tests.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.