Coverage Report - pt.digitalis.dif.dem.interfaces.IValidator
 
Classes in this File Line Coverage Branch Coverage Complexity
IValidator
N/A
N/A
1
 
 1  
 /**
 2  
  * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. Distribuicao e Gestao de Informatica, Lda.
 3  
  * Estrada de Paco de Arcos num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999
 4  
  * http://www.digitalis.pt
 5  
  */
 6  
 package pt.digitalis.dif.dem.interfaces;
 7  
 
 8  
 import java.util.List;
 9  
 
 10  
 import pt.digitalis.dif.controller.objects.DIFContext;
 11  
 
 12  
 /**
 13  
  * This interface represents a parameter Validator on the DEM. This will be used to annotate parameter attribute that
 14  
  * will have their values validated by the specificed validator logic.
 15  
  *
 16  
  * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/>
 17  
  * @created 2007/04/24
 18  
  */
 19  
 public interface IValidator {
 20  
 
 21  
     /**
 22  
      * Return the Validator´s ID.
 23  
      *
 24  
      * @return the Validator's ID
 25  
      */
 26  
     public String getID();
 27  
 
 28  
     /**
 29  
      * Returns the list of IDs of the parameters binded to the Validator.
 30  
      *
 31  
      * @return the list of binded parameters
 32  
      */
 33  
     public List<String> getBindedParameterIDs();
 34  
 
 35  
     /**
 36  
      * Executes the Entity validation.
 37  
      *
 38  
      * @param value
 39  
      *            the Entity to validate
 40  
      * @param context
 41  
      *            the execution context
 42  
      * @return T if the Entity is valid, F otherwise
 43  
      */
 44  
     public boolean isValid(Object value, DIFContext context);
 45  
 }