public final class ValidatorNone extends AbstractValidator<Object>
ValueValidator
that always validates
successfully.Modifier and Type | Field and Description |
---|---|
private static ValidatorNone |
INSTANCE |
PROPERTY_MANDATORY, PROPERTY_MAXIMUM, PROPERTY_MINIMUM
Constructor and Description |
---|
ValidatorNone()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static <VALUE> AbstractValidator<VALUE> |
getInstance() |
int |
hashCode() |
ValidationFailure |
validate(Object value,
Object valueSource)
This method validates the given
value . |
append, contains, createBundle, getCode, getProperty, isDynamic, isMandatory, validate
private static final ValidatorNone INSTANCE
public static <VALUE> AbstractValidator<VALUE> getInstance()
VALUE
- is the generic type of the value to validate.public ValidationFailure validate(Object value, Object valueSource)
ValueValidator
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
.public int hashCode()
hashCode
in class AbstractValidator<Object>
public boolean equals(Object obj)
equals
in class AbstractValidator<Object>
Copyright © 2001–2016 mmm-Team. All rights reserved.