public class None extends AbstractValidator<Void,Object>
Validate
annotation of a property.javaScriptSupport| Constructor and Description |
|---|
None() |
| Modifier and Type | Method and Description |
|---|---|
void |
render(Field field,
Void constraintValue,
MessageFormatter formatter,
MarkupWriter writer,
FormSupport formSupport)
Does nothing.
|
void |
validate(Field field,
Void constraintValue,
MessageFormatter formatter,
Object value)
Does nothing.
|
getConstraintType, getMessageKey, getValueType, isRequiredpublic None()
public void render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport)
field - the field which is currently being renderedconstraintValue - the value used to constrain inputformatter - validation message, in the appropriate localewriter - markup writer, allowing additional attributes to be written into the active elementformSupport - used to add JavaScriptpublic void validate(Field field, Void constraintValue, MessageFormatter formatter, Object value) throws ValidationException
field - the field for which a client submitted value is being validatedconstraintValue - the value used to constrainformatter - Validation messages, in the appropriate localevalue - the translated value supplied by the userValidationException - if the value violates the constraint5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.