jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.apidiscovery.interfaces
Interface Validator<T>

Type Parameters:
T - Parameter type which is validated
All Known Implementing Classes:
Validators.MultiplyOf32, Validators.NonNegativeDouble, Validators.NonNegativeInteger, Validators.NoValidator, Validators.PositiveInteger, Validators.UnitInterval

public interface Validator<T>

Validator for a parameter.

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Note that the usage of Validators currently not supported.

Author:
Gabor Imre

Method Summary
 String getDescription()
          Description of this validator.
 ValidateResult<T> validateValue(T value)
          Validate parameter value.
 

Method Detail

validateValue

ValidateResult<T> validateValue(T value)
Validate parameter value.

Parameters:
value - Parameter value to validate
Returns:
Result of validation

getDescription

String getDescription()
Description of this validator.

Returns:
Description of this validator TODO: maybe use Description annotation?

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)