org.eclipse.actf.validation.rules
Interface IRuleMapping

All Known Implementing Classes:
ValidationDocumentRuleMapping

public interface IRuleMapping

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

Author:
John Buslawski

Method Summary
 Map getRules()
          Returns the complete map of Rules.
 List getRulesForComponent(String id, Object component)
          Retrieve the list of Rules to be used to validate the component.
 void setRules(Map rules)
          Sets the complete map of Rules.
 

Method Detail

getRules

Map getRules()
Returns the complete map of Rules. The rule names are the keys into the Map while the values are the corresponding IRule objects.

Returns:
the map of Rules for all components

setRules

void setRules(Map rules)
Sets the complete map of Rules. The rule names are the keys into the Map while the values are the corresponding IRule objects.

Parameters:
rules - the map of Rules for all components

getRulesForComponent

List getRulesForComponent(String id,
                          Object component)
Retrieve the list of Rules to be used to validate the component. The list contains a set of rules to be validated for components of a given type including their parents if the component was marked as polymorphic.

Parameters:
id - - the id of the component (may be null)
component - - component being validated
Returns:
a list of lists of rules to be validated for the given component