pt.digitalis.dif.dem.interfaces
Interface IValidator


public interface IValidator

This interface represents a parameter Validator on the DEM. This will be used to annotate parameter attribute that will have their values validated by the specificed validator logic.

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
2007/04/24

Method Summary
 List<String> getBindedParameterIDs()
          Returns the list of IDs of the parameters binded to the Validator.
 String getID()
          Return the Validator´s ID.
 boolean isValid(Object value, DIFContext context)
          Executes the Entity validation.
 

Method Detail

getID

String getID()
Return the Validator´s ID.

Returns:
the Validator's ID

getBindedParameterIDs

List<String> getBindedParameterIDs()
Returns the list of IDs of the parameters binded to the Validator.

Returns:
the list of binded parameters

isValid

boolean isValid(Object value,
                DIFContext context)
Executes the Entity validation.

Parameters:
value - the Entity to validate
context - the execution context
Returns:
T if the Entity is valid, F otherwise


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