public class ValidationAndStatusManager extends Object
ValidationAndStatusManager load and executes all registered ValidationHandler and
StatusMessageHandler.| Constructor | Description |
|---|---|
ValidationAndStatusManager() |
Instantiates a new validation and status manager and load all registered
ValidationAndStatusHandler
using service-provider loading facility. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
process(ValidationContext context,
String[] args) |
Generates a Status message according to the provided
ValidationContext and the provided arguments |
String |
process(ValidationInput source,
ValidationContext context) |
Validates the
ValidationInput and generates a Status message according to the provided
ValidationContext |
StatusMessageResult |
process(ValidationRequest validationRequest) |
Validates the
ValidationRequest and generates a Status message |
public ValidationAndStatusManager()
ValidationAndStatusHandler
using service-provider loading facility.public String process(ValidationInput source, ValidationContext context) throws ValidationException, StatusMessageException
ValidationInput and generates a Status message according to the provided
ValidationContextsource - the source to be validatedcontext - the context containing information for the validation and status generationValidationException - if an internal validation error occursStatusMessageException - if an internal error occurs during ste status message generationpublic String process(ValidationContext context, String[] args) throws ValidationException, StatusMessageException
ValidationContext and the provided argumentscontext - the validation contextargs - the arguments provided by the userValidationException - if an internal error occurs during validationStatusMessageException - in case of exceptionpublic StatusMessageResult process(ValidationRequest validationRequest) throws ValidationException, StatusMessageException
ValidationRequest and generates a Status messagevalidationRequest - the source to be validatedValidationException - if an internal validation error occursStatusMessageException - if an internal error occurs during ste status message generationCopyright © 2025. All rights reserved.