ConstraintValidator<ValidPort>public class ValidPortValidator extends Object implements ConstraintValidator<ValidPort>
| Constructor | Description |
|---|---|
ValidPortValidator() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize(ValidPort 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.
|
public void initialize(ValidPort annotation)
ConstraintValidatorinitialize in interface ConstraintValidator<ValidPort>annotation - the annotation value this validator will be validating.public boolean isValid(String name, Object value)
ConstraintValidatorisValid in interface ConstraintValidator<ValidPort>name - the name to use for error reportingvalue - the value to validate.true if the given value is valid.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.