pt.digitalis.dif.dem.objects.parameters.validators
Interface IParameterValidator


public interface IParameterValidator

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Nov 16, 2007

Method Summary
 boolean validate(Object value, IDIFContext context)
          Validates the given value
 String validationErrorMessage()
          Get a description on why the validation fails
 String validationErrorMessage(String language)
          Get a description on why the validation fails
 

Method Detail

validate

boolean validate(Object value,
                 IDIFContext context)
Validates the given value

Parameters:
value - the value to validate
context - the context
Returns:
T if the validation has passed

validationErrorMessage

String validationErrorMessage(String language)
Get a description on why the validation fails

Parameters:
language - the language on witch to create the error message
Returns:
the validation error message

validationErrorMessage

String validationErrorMessage()
Get a description on why the validation fails

Returns:
the validation error message in the default language


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.