A - the Constraint annotation this interface validates.RequiredValidator, ValidHostValidator, ValidPortValidatorpublic interface ConstraintValidator<A extends Annotation>
Constraint annotations must implement to perform validation logic.| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize(A annotation) |
Called before this validator is used with the constraint annotation value.
|
boolean |
isValid(String name,
Object value) |
Indicates if the given value is valid.
|
void initialize(A annotation)
annotation - the annotation value this validator will be validating.Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.