HDIV API 2.0.4

org.hdiv.web.validator
Class EditableParameterValidator

java.lang.Object
  extended by org.hdiv.web.validator.EditableParameterValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class EditableParameterValidator
extends java.lang.Object
implements org.springframework.validation.Validator

Validation to visualize the errors produced in the editable fields detected by HDIV.

Since:
HDIV 2.0.3
Author:
Gorka Vicente

Constructor Summary
EditableParameterValidator()
           
 
Method Summary
 java.lang.String createMessageError(java.lang.String[] values)
          It creates the message error from the values values.
 boolean supports(java.lang.Class arg0)
           
 void validate(java.lang.Object obj, org.springframework.validation.Errors errors)
           
 void validateEditableParameters(java.lang.Object formObject, org.springframework.validation.Errors errors)
          Obtains the errors from request detected by HDIV during the validation process of the editable parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditableParameterValidator

public EditableParameterValidator()
Method Detail

supports

public boolean supports(java.lang.Class arg0)
Specified by:
supports in interface org.springframework.validation.Validator

validate

public void validate(java.lang.Object obj,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator

validateEditableParameters

public void validateEditableParameters(java.lang.Object formObject,
                                       org.springframework.validation.Errors errors)
Obtains the errors from request detected by HDIV during the validation process of the editable parameters.

Parameters:
formObject - form object
errors - errors detected by HDIV during the validation process of the editable parameters.

createMessageError

public java.lang.String createMessageError(java.lang.String[] values)
It creates the message error from the values values.

Parameters:
values - values with not allowed characters
Returns:
message error to show

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.