org.apache.logging.log4j.core.config.plugins.validation
Interface ConstraintValidator<A extends Annotation>

Type Parameters:
A - the Constraint annotation this interface validates.
All Known Implementing Classes:
RequiredValidator

public interface ConstraintValidator<A extends Annotation>

Interface that Constraint annotations must implement to perform validation logic.

Since:
2.1

Method Summary
 void initialize(A annotation)
          Called before this validator is used with the constraint annotation value.
 boolean isValid(Object value)
          Indicates if the given value is valid.
 

Method Detail

initialize

void initialize(A annotation)
Called before this validator is used with the constraint annotation value.

Parameters:
annotation - the annotation value this validator will be validating.

isValid

boolean isValid(Object value)
Indicates if the given value is valid.

Parameters:
value - the value to validate.
Returns:
true if the given value is valid.


Copyright © 1999-2015 Apache Software Foundation. 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.