| 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(Event 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,
Event event)
Creates an exception of the given
exceptionClass which represents the given result. |
Exception |
ExceptionFactory.createException(ValidationResult result,
String exceptionClassName,
Event event)
Creates an exception of the given
exceptionClassName which represents the given result. |
| Constructor and Description |
|---|
ValidationException(ValidationResult validationResult)
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(org.mule.runtime.api.i18n.I18nMessage 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,
Event event) |
Exception |
DefaultExceptionFactory.createException(ValidationResult result,
String exceptionClassName,
Event 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 |
NotNullValidator.validate(Event event) |
ValidationResult |
NotEmptyValidator.validate(Event event) |
ValidationResult |
MatchesRegexValidator.validate(Event event) |
ValidationResult |
UrlValidator.validate(Event event) |
ValidationResult |
BooleanValidator.validate(Event event) |
ValidationResult |
IpValidator.validate(Event event) |
ValidationResult |
TimeValidator.validate(Event event) |
ValidationResult |
NumberValidator.validate(Event event) |
ValidationResult |
EmailValidator.validate(Event event) |
ValidationResult |
NullValidator.validate(Event event) |
ValidationResult |
SizeValidator.validate(Event event) |
ValidationResult |
EmptyValidator.validate(Event event) |
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.