V
- The type of array elementspublic final class ArrayElementConstraint<V> extends SequenceElementConstraint<Object,V>
SequenceElementConstraint
implementation
that performs validation of array elements.ConstraintFactory.arrayElement(Constraint)
constraint
Modifier and Type | Method and Description |
---|---|
protected <T> Object |
doValidate(Object array,
ValidationContext<T> context,
List<ConstraintViolationException> violations)
Checks whether all elements of the specified array conforms to the
constraint of array elements.
|
Class<?> |
getType()
Returns array type.
|
appendMessageArguments, getConstraint, validate
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate
public Class<?> getType()
protected <T> Object doValidate(Object array, ValidationContext<T> context, List<ConstraintViolationException> violations)
doValidate
in class SequenceElementConstraint<Object,V>
T
- The type of validated entity.array
- Array whose elements to be checked.context
- Validation context.violations
- List of violations.Copyright © 2011–2020 FoxLabs. All rights reserved.