public class ValidatorNone extends AbstractValidator<Object>
ValueValidator that always validates
successfully.| Modifier and Type | Field and Description |
|---|---|
private static ValidatorNone |
INSTANCE |
| Constructor and Description |
|---|
ValidatorNone()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <VALUE> AbstractValidator<VALUE> |
getInstance() |
ValidationFailure |
validate(Object value,
Object valueSource)
This method validates the given
value. |
createBundle, getCode, isDynamic, isMandatory, validateprivate static final ValidatorNone INSTANCE
getInstance()public static <VALUE> AbstractValidator<VALUE> getInstance()
VALUE - is the generic type of the value to validate.public ValidationFailure validate(Object value, Object valueSource)
value.value - is the value to validate.valueSource - is the source describing the origin of the given
value. This may be the filename where the value was read from, an XPath where the
value was located in an XML document, the label of a widget of the UI containing the value, etc.
This will help to find the problem easier. The source needs to have a reasonable
string-representation as this may be displayed to the end-user to locate
the source of the failure. In most cases it is suitable to directly pass a String.ValidationFailure or null if the given value is valid
according to this ValueValidator.Copyright © 2001–2015 mmm-Team. All rights reserved.