org.eclipse.actf.validation.rules
Interface ICriterionMapping

All Known Implementing Classes:
ValidationDocumentCriterionMapping

public interface ICriterionMapping

basic map for mapping criteria to the validation rules list that are to be applied to them


Method Summary
 Map<ICriterion,List<IRule>> getAllRules()
          Returns the complete criterion -> List mapping.
 ICriterion[] getCriteria()
          Return all criteria's i.e. the keys in the criteria to rules map.
 ICriterion[] getRulesForCriterion(ICriterion criterion)
          Retrieve a list of Rules for a given criterion
 void setAllRules(Map<ICriterion,List<IRule>> criteriaToRulesMap)
          Sets the complete map of Rules.
 

Method Detail

getAllRules

Map<ICriterion,List<IRule>> getAllRules()
Returns the complete criterion -> List mapping. ICriterions are the keys in the map while IRules List are the corresponding values.

Returns:
criteria to rules Map

setAllRules

void setAllRules(Map<ICriterion,List<IRule>> criteriaToRulesMap)
Sets the complete map of Rules. ICriterion are the keys into the Map while the values are the corresponding IRule List.

Parameters:
criteriaToRulesMap - criteria to rules Map

getRulesForCriterion

ICriterion[] getRulesForCriterion(ICriterion criterion)
Retrieve a list of Rules for a given criterion

Parameters:
criterion - a key in criteriaRules Map
Returns:
values for the key, List of rules

getCriteria

ICriterion[] getCriteria()
Return all criteria's i.e. the keys in the criteria to rules map.

Returns:
keys in the criteria to Rules map