org.eclipse.actf.validation.valdoc.rulebase
Class ValidationDocumentCriterionMapping

java.lang.Object
  extended by org.eclipse.actf.validation.valdoc.rulebase.ValidationDocumentCriterionMapping
All Implemented Interfaces:
ICriterionMapping

public class ValidationDocumentCriterionMapping
extends Object
implements ICriterionMapping


Constructor Summary
ValidationDocumentCriterionMapping(Map<ICriterion,List<IRule>> criteriaRulesMap, Set polyRuleTypes, Set nonPolyRuleTypes)
           
 
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.
 Set getNonPolymorphicRuleTypes()
           
 Set getPolymorphicRuleTypes()
           
 ICriterion[] getRulesForCriterion(ICriterion criterion)
          Retrieve a list of Rules for a given criterion
 void setAllRules(Map<ICriterion,List<IRule>> rules)
          Sets the complete map of Rules.
 void setNonPolymorphicRuleTypes(Set ruleTypes)
           
 void setPolymorphicRuleTypes(Set ruleTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationDocumentCriterionMapping

public ValidationDocumentCriterionMapping(Map<ICriterion,List<IRule>> criteriaRulesMap,
                                          Set polyRuleTypes,
                                          Set nonPolyRuleTypes)
Method Detail

getNonPolymorphicRuleTypes

public Set getNonPolymorphicRuleTypes()

getPolymorphicRuleTypes

public Set getPolymorphicRuleTypes()

setNonPolymorphicRuleTypes

public void setNonPolymorphicRuleTypes(Set ruleTypes)

setPolymorphicRuleTypes

public void setPolymorphicRuleTypes(Set ruleTypes)

getAllRules

public Map<ICriterion,List<IRule>> getAllRules()
Description copied from interface: ICriterionMapping
Returns the complete criterion -> List mapping. ICriterions are the keys in the map while IRules List are the corresponding values.

Specified by:
getAllRules in interface ICriterionMapping
Returns:
criteria to rules Map

setAllRules

public void setAllRules(Map<ICriterion,List<IRule>> rules)
Description copied from interface: ICriterionMapping
Sets the complete map of Rules. ICriterion are the keys into the Map while the values are the corresponding IRule List.

Specified by:
setAllRules in interface ICriterionMapping
Parameters:
rules - criteria to rules Map

getCriteria

public ICriterion[] getCriteria()
Description copied from interface: ICriterionMapping
Return all criteria's i.e. the keys in the criteria to rules map.

Specified by:
getCriteria in interface ICriterionMapping
Returns:
keys in the criteria to Rules map

getRulesForCriterion

public ICriterion[] getRulesForCriterion(ICriterion criterion)
Description copied from interface: ICriterionMapping
Retrieve a list of Rules for a given criterion

Specified by:
getRulesForCriterion in interface ICriterionMapping
Parameters:
criterion - a key in criteriaRules Map
Returns:
values for the key, List of rules