com.opensymphony.module.propertyset.verifiers
Class NumberVerifier
java.lang.Object
com.opensymphony.module.propertyset.verifiers.NumberVerifier
- All Implemented Interfaces:
- PropertyVerifier, java.io.Serializable
- public class NumberVerifier
- extends java.lang.Object
- implements PropertyVerifier
Handles verification of numbers.
Can be configured to only accept specific numeric types (int, float, etc)
as well as a range for the specified number. All constraints are
optional. If not specified, then any number is accepted.
- Version:
- $Revision: 1.3 $
- Author:
- Hani Suleiman
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Number |
getMax()
|
java.lang.Number |
getMin()
|
java.lang.Class |
getType()
|
void |
setMax(java.lang.Number num)
|
void |
setMin(java.lang.Number num)
|
void |
setType(java.lang.Class type)
|
void |
verify(java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberVerifier
public NumberVerifier()
setMax
public void setMax(java.lang.Number num)
getMax
public java.lang.Number getMax()
setMin
public void setMin(java.lang.Number num)
getMin
public java.lang.Number getMin()
setType
public void setType(java.lang.Class type)
getType
public java.lang.Class getType()
verify
public void verify(java.lang.Object value)
throws VerifyException
- Specified by:
verify in interface PropertyVerifier
- Throws:
VerifyException
|