Adds one error message to a specific field. Does not overwrite already existing errors.
@param field the name of the field
@param error the error message
Records an error message which will be presented to the user at a later time. Unlike throwing an exception, this enable us to continue configuring the Injector and discover more errors. Uses {@link String#format(String,Object[])} to insert the arguments into themessage.
Makes the matrix to be row-stochastic: In other words, for a given "from" category, if we sum the errors across all the "to" categories, we get 1.0. We use Laplace smoothing
Adds an error message to the {@link DataMap}. If a value is not mapped to {@link #ERROR_KEY}, bind the specified error message to {@link #ERROR_KEY}. Otherwise, replace the value of {@link #ERROR_KEY} witha new {@link String} constructed by appending the specified error message tothe previous value of {@link #ERROR_KEY}.
@param msg provides the error message to add.
@return the new value of {@link #ERROR_KEY}.
Add an error with a specific name. This name may be used to associate the error with a certain UI element (such as an Input), so the user can see immediately what was wrong when the error is displayed.
@param errorName A name for this error message, which may (or may not) correspondto the UI element from which the error originated.
@param errorMessage A human-readable error message to be displayed to the user. Messagesbeginning with "$" will be taken to be internationalized keys to look up in the appropriate message bundle for this locale.
The error elements denotes that the fields value is invalid for the given context. The message contained within the error message will provide assistance to the user in correcting the problem.
Add error item. Adds an error item to the problem list, which is a definite problem that still allows validation to proceed.
@param msg problem description
@param obj source object for validation error
@return true if to continue validation, false if not
Add an error message with the parameters that should be used when localizing the message.
@param message the internationalized message describing the problem
@param params the values for the parameters in the message
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.