Skip to content

Instantly share code, notes, and snippets.

Mariano Gonzalez marianogonzalez

Block or report user

Report or block marianogonzalez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View isnumber.xml
<validation:is-number value="#[value]" numberType="LONG" minValue="#[min]" maxValue="#[max]" />
View isnumberfull.xml
<validation:is-number value="#[value]" numberType="LONG" minValue="#[min]" maxValue="#[max]" pattern="#[pattern]" locale="US" />
View isnumbermel.xml
#[validator.isNumber(payload, numberType, minValue, maxValue)]
View validateUrlmel.xml
* A component which performs a validation and expresses
* its result through a {@link ValidationResult} object.
* <p/>
* The {@link #validate(MuleEvent)} method receives a
* {@link MuleEvent} in order to make it generic and easy to extend.
* However, that doesn't necessarily mean that all the validation
* is performed with or over the event exclusively. Thread
* safeness is not to be assumed over instances of this class
* since the validator could be stateful.
* Copyright (c) MuleSoft, Inc. All rights reserved.
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
package org.mule.extension.validation.api;
* The result of a validation
View customvalidator.xml
<validation:custom-validator class="com.myproject.CustomValidator" config-ref="validator" />
View customvalidatorbyref.xml
<spring:bean id="customValidator" class="com.myproject.CustomValidator" />
<flow name="customValidator">
<validation:custom-validator ref="customValidator" />
You can’t perform that action at this time.