org.apache.bval.constraints
Class SizeValidator
java.lang.Object
org.apache.bval.constraints.SizeValidator
- Direct Known Subclasses:
- SizeValidatorForArrayOfBoolean, SizeValidatorForArrayOfByte, SizeValidatorForArrayOfChar, SizeValidatorForArrayOfDouble, SizeValidatorForArrayOfFloat, SizeValidatorForArrayOfInt, SizeValidatorForArrayOfLong, SizeValidatorForArrayOfObject, SizeValidatorForArrayOfShort, SizeValidatorForCollection, SizeValidatorForMap, SizeValidatorForString
public abstract class SizeValidator
- extends Object
Description: Abstract validator impl. for @Size annotation
Field Summary |
protected int |
max
|
protected int |
min
|
Method Summary |
void |
initialize(Size constraint)
Configure the constraint validator based on the elements
specified at the time it was defined. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
min
protected int min
max
protected int max
SizeValidator
public SizeValidator()
initialize
public void initialize(Size constraint)
- Configure the constraint validator based on the elements
specified at the time it was defined.
- Parameters:
constraint
- the constraint definition
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.