Package org.hdiv.dataValidator

Examples of org.hdiv.dataValidator.IValidationResult


    int size = values.length;
    String[] originalValues = new String[size];

    for (int i = 0; i < size; i++) {

      IValidationResult result = this.dataValidator.validate(values[i], target, parameter, stateParameter,
          actionParamValues);

      if (!result.getLegal()) {
        this.logger.log(HDIVErrorCodes.PARAMETER_VALUE_INCORRECT, target, parameter, values[i]);
        return new ValidatorHelperResult(HDIVErrorCodes.PARAMETER_VALUE_INCORRECT);
      } else {
        originalValues[i] = (String) result.getResult();
      }
    }

    if (this.hdivConfig.getConfidentiality()) {
      this.addParameterToRequest(request, parameter, originalValues);
View Full Code Here

TOP

Related Classes of org.hdiv.dataValidator.IValidationResult

Copyright © 2018 www.massapicom. All rights reserved.
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.