| java.lang.Object | |
| ↳ | org.mule.modules.validation.ValidationModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
A common issue when receiving data either electronically or from user input is verifying the integrity of the data. This work is repetitive and becomes even more complicated when different sets of validation rules need to be applied to the same set of data based on locale. Error messages may also vary by locale. This module addresses some of these issues to speed development and maintenance of validation rules.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
If if the specified
creditCardNumber is not a valid credit card number throw an exception. | |||||||||||
If the specified
date is not a valid one throw an exception. | |||||||||||
If the specified
domain does not parses as a valid domain name with a recognized top-level domain then
throw an exception. | |||||||||||
If the specified
value is not a valid Double throw an exception. | |||||||||||
If the specified
emailAddress is not a valid one throw an exception. | |||||||||||
If the specified
value is not a valid Float throw an exception. | |||||||||||
If the specified
isbnCode is not a valid one throw an exception. | |||||||||||
If the specified
isbnCode is not a valid one throw an exception. | |||||||||||
If the specified
value is not a valid Integer throw an exception. | |||||||||||
If the specified
ipAddress is not a valid one throw an exception. | |||||||||||
If the specified
value is not a valid Long throw an exception. | |||||||||||
If the specified
object is empty or null throw an exception. | |||||||||||
If the specified
percentage is not a valid one throw an exception. | |||||||||||
If the specified
value is not a valid Short throw an exception. | |||||||||||
If the specified
time is not a valid one throw an exception. | |||||||||||
If if the specified
topLevelDomain does not matches any IANA-defined top-level domain throw an exception. | |||||||||||
If if the specified
countryCode does not matches any IANA-defined top-level domain throw an exception. | |||||||||||
If the specified
url is not a valid one throw an exception. | |||||||||||
If the specified
value does not match any of the regexs then throw an exception. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
If if the specified creditCardNumber is not a valid credit card number throw an exception.
| creditCardNumber | Credit card number to validate |
|---|---|
| creditCardTypes | Credit card types to validate |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified date is not a valid one throw an exception.
| date | Date to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified domain does not parses as a valid domain name with a recognized top-level domain then
throw an exception.
| domain | Domain name to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value is not a valid Double throw an exception.
| value | Value to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| minValue | The minimum value |
| maxValue | The maximum value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified emailAddress is not a valid one throw an exception.
| emailAddress | Email address to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value is not a valid Float throw an exception.
| value | Value to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| minValue | The minimum value |
| maxValue | The maximum value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified isbnCode is not a valid one throw an exception.
| isbnCode | ISBN code to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified isbnCode is not a valid one throw an exception.
| isbnCode | ISBN code to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value is not a valid Integer throw an exception.
| value | Value to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| minValue | The minimum value |
| maxValue | The maximum value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified ipAddress is not a valid one throw an exception.
| ipAddress | IP address to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value is not a valid Long throw an exception.
| value | Value to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| minValue | The minimum value |
| maxValue | The maximum value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified object is empty or null throw an exception.
| object | Object to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified percentage is not a valid one throw an exception.
| percentage | Percentage to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value is not a valid Short throw an exception.
| value | Value to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| minValue | The minimum value |
| maxValue | The maximum value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified time is not a valid one throw an exception.
| time | Time to validate |
|---|---|
| locale | The locale to use for the format |
| pattern | The pattern used to format the value |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If if the specified topLevelDomain does not matches any IANA-defined top-level domain throw an exception.
Leading dots are ignored if present. The search is case-sensitive.
| topLevelDomain | Domain name to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If if the specified countryCode does not matches any IANA-defined top-level domain throw an exception.
Leading dots are ignored if present. The search is case-sensitive.
| countryCode | Country code to validate |
|---|---|
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified url is not a valid one throw an exception.
| url | URL to validate |
|---|---|
| allowTwoSlashes | Allow two slashes in the path component of the URL. |
| allowAllSchemes | Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes. |
| allowLocalURLs | Allow local URLs, such as http://localhost/ or http://machine/ . |
| noFragments | Enabling this options disallows any URL fragments. |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |
If the specified value does not match any of the regexs then throw an exception.
| value | Value to match |
|---|---|
| regexs | Set of regular expressions to test against |
| caseSensitive | When true matching is case sensitive, otherwise matching is case in-sensitive |
| exceptionClassName | Class name of the exception to throw |
| InvalidException | if not valid |
|---|---|
| Exception |