HDIV API 2.0.4

org.hdiv.validator
Interface IValidation

All Known Implementing Classes:
Validation

public interface IValidation

Interface for editable data validations.

Since:
HDIV 1.1
Author:
Gorka Vicente

Method Summary
 boolean validate(java.lang.String parameter, java.lang.String[] values, java.lang.String dataType)
           Checks if the values values are valid for the editable parameter parameter.
 

Method Detail

validate

boolean validate(java.lang.String parameter,
                 java.lang.String[] values,
                 java.lang.String dataType)

Checks if the values values are valid for the editable parameter parameter.

There are two types of validations:

  • accepted: the value is valid only if it passes the validation
  • rejected: the value is rejected if doesn't pass the validation
  • Parameters:
    parameter - parameter name
    values - parameter's values
    dataType - editable data type
    Returns:
    True if the values values are valid for the parameter parameter.
    Since:
    HDIV 1.1.1

    HDIV 2.0.4

    Copyright © 2008 hdiv.org. All Rights Reserved.