public class ValidationManager extends Object
ValidationManager loads and executes all registered ValidationHandler.| Constructor | Description |
|---|---|
ValidationManager() |
Instantiates a new validation manager and load all registered
ValidationHandler using service-provider
loading facility. |
| Modifier and Type | Method | Description |
|---|---|---|
List<String> |
getAvailableBusinessRules(ValidationContext context) |
Gets available business rules.
|
String |
process(ValidationContext context,
String[] args) |
Triggers all the appropriate handlers for validation and returns the errors as string
|
String |
process(ValidationInput source,
ValidationContext context) |
Executes all registered validation handlers on a
ValidationInput content. |
ValidationResult |
process(ValidationRequest validationRequest,
ValidationContext context) |
Executes all registered validation handlers on a
ValidationRequest content. |
public ValidationManager()
ValidationHandler using service-provider
loading facility.public String process(ValidationInput source, ValidationContext context) throws ValidationException
ValidationInput content. Only
ValidationHandler that can process the specific content type are executed.source - Source's content and type.context - with all information related and stored during validation process.ValidationException - Validation exception.public String process(ValidationContext context, String[] args) throws ValidationException
context - the validation context that will hold the errors of the validation and other validation propertiesargs - the arguments provided by the user (i,e path of the file to be validated)ValidationException - if no handler is found or an internal validation error occurspublic ValidationResult process(ValidationRequest validationRequest, ValidationContext context) throws ValidationException
ValidationRequest content. Only
ValidationHandler that can process the specific content type are executed.validationRequest - Source's content and type.context - The validation contextValidationException - Validation exception.public List<String> getAvailableBusinessRules(ValidationContext context) throws ValidationException
context - the contextValidationException - the validation exceptionCopyright © 2025. All rights reserved.