| Package | Description |
|---|---|
| org.mule.extension.validation.api | |
| org.mule.extension.validation.internal | |
| org.mule.extension.validation.internal.validator |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MultipleValidationResult
A specialization of
ValidationResult which
represents a group of validations that were executed together. |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
ValidationException.getValidationResult() |
ValidationResult |
Validator.validate(MuleEvent event)
Performs the validation and generates a
ValidationResult back. |
| Modifier and Type | Method and Description |
|---|---|
List<ValidationResult> |
MultipleValidationResult.getFailedValidationResults()
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Exception> |
ExceptionFactory.createException(ValidationResult result,
Class<T> exceptionClass,
MuleEvent event)
Creates an exception of the given
exceptionClass
which represents the given result. |
Exception |
ExceptionFactory.createException(ValidationResult result,
String exceptionClassName,
MuleEvent event)
Creates an exception of the given
exceptionClassName
which represents the given result. |
| Constructor and Description |
|---|
ValidationException(ValidationResult validationResult,
MuleEvent event)
Creates a new instance for the given
validationResult |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableMultipleValidationResult
A immutable implementation of
MultipleValidationResult. |
class |
ImmutableValidationResult
An immutable implementation of
ValidationResult. |
| Modifier and Type | Method and Description |
|---|---|
static ValidationResult |
ImmutableValidationResult.error(Message message)
Creates a new instance with the given
message
and which ImmutableValidationResult.isError() returns true |
static ValidationResult |
ImmutableValidationResult.error(String message)
Creates a new instance with the given
message
and which ImmutableValidationResult.isError() returns true |
static ValidationResult |
ImmutableValidationResult.ok()
returns a
ImmutableValidationResult without message and
which ImmutableValidationResult.isError() method returns false. |
| Modifier and Type | Method and Description |
|---|---|
List<ValidationResult> |
ImmutableMultipleValidationResult.getFailedValidationResults()
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Exception> |
DefaultExceptionFactory.createException(ValidationResult result,
Class<T> exceptionClass,
MuleEvent event) |
Exception |
DefaultExceptionFactory.createException(ValidationResult result,
String exceptionClassName,
MuleEvent event) |
| Modifier and Type | Method and Description |
|---|---|
static MultipleValidationResult |
ImmutableMultipleValidationResult.of(Iterable<ValidationResult> results)
A
Iterable with all the ValidationResult that were generated
together, both failed and successful alike. |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
UrlValidator.validate(MuleEvent event) |
ValidationResult |
MatchesRegexValidator.validate(MuleEvent event) |
ValidationResult |
SizeValidator.validate(MuleEvent event) |
ValidationResult |
TimeValidator.validate(MuleEvent event) |
ValidationResult |
EmptyValidator.validate(MuleEvent event) |
ValidationResult |
EmailValidator.validate(MuleEvent event) |
ValidationResult |
IpValidator.validate(MuleEvent event) |
ValidationResult |
NotEmptyValidator.validate(MuleEvent event) |
ValidationResult |
NumberValidator.validate(MuleEvent event) |
ValidationResult |
NotNullValidator.validate(MuleEvent event) |
ValidationResult |
NullValidator.validate(MuleEvent event) |
ValidationResult |
BooleanValidator.validate(MuleEvent event) |
Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.