T - type of object to validate@PublicEvolving public interface Validator<T>
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Initializes the validator.
|
void |
validate(T value)
Validates the T properties.
|
void initialize()
throws Exception
Exception - thrown when there are initialization error.void validate(T value) throws ValidatorException
value - to be validated.ValidatorException - thrown when there are issues with validation.Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.