Java org.apache.wicket.validation ValidationError fields, constructors, methods, implement or subclass

Example usage for Java org.apache.wicket.validation ValidationError fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.wicket.validation ValidationError.

The text is from its open source code.

Constructor

ValidationError()
Constructs an empty error
ValidationError(IValidator validator)
Constructs a validation error with the validator's standard key.
ValidationError(String message)
Constructs a validation error with the specified message.
ValidationError(IValidator validator, String variation)
Constructs a validation error with a variation of validator's standard key.

Method

ValidationErroraddKey(String key)
Adds a key to the list of keys that will be tried against IErrorMessageSource to locate the error message string.
ValidationErroraddKey(IValidator validator)
Shortcut for adding a standard message key which is the simple name of the validator' class
ValidationErroraddKey(IValidator validator, String variation)
Shortcut for adding a standard message key variation which is the simple name of the validator class followed by a dot and the variation

If the variation is empty only the validator's simple class name is used

SerializablegetErrorMessage(IErrorMessageSource messageSource)
ListgetKeys()
Gets error keys
MapgetVariables()
Retrieves the variables map for this error.
voidsetKeys(List keys)
Sets error keys
ValidationErrorsetMessage(String message)
Sets message that will be used when no message could be located via message keys.
ValidationErrorsetVariable(String name, Object value)
Sets a key and value in the variables map for use in substitution.
ValidationErrorsetVariables(Map vars)
Sets the variables map for this error.