org.eclipse.actf.validation.validators
Class GenericAccessibilityValidator

java.lang.Object
  extended by org.eclipse.actf.validation.validators.GenericAccessibilityValidator
All Implemented Interfaces:
IValidator
Direct Known Subclasses:
DomAccessibilityValidator, MozillaDomAccessibilityValidator

public class GenericAccessibilityValidator
extends Object
implements IValidator

base implementation for all accessibility validator classes.

Author:
John Buslawski

Field Summary
protected  IRuleSet ruleSet
           
 
Constructor Summary
GenericAccessibilityValidator(IRuleSet ruleSet)
          Create an AccesibilityValidator for the given rule set.
 
Method Summary
protected  boolean checkValidationContext(AccessibilityValidationContext context)
           
 IRuleSet getRuleSet()
          return the ruleSet being used by this validator
 void setRuleSet(IRuleSet ruleSet)
          set the rule set to be used for validating the components
 void validate(IValidationContext context, Object component)
          used to validate single components.
protected  void validateRules(IValidationContext context, List<List<IRule>> rulesListList)
          validate the specified component according to the list of lists of rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ruleSet

protected IRuleSet ruleSet
Constructor Detail

GenericAccessibilityValidator

public GenericAccessibilityValidator(IRuleSet ruleSet)
Create an AccesibilityValidator for the given rule set.

Parameters:
ruleSet - - the rule set to use when validating the components
Method Detail

getRuleSet

public IRuleSet getRuleSet()
Description copied from interface: IValidator
return the ruleSet being used by this validator

Specified by:
getRuleSet in interface IValidator
Returns:
ruleSet instance

setRuleSet

public void setRuleSet(IRuleSet ruleSet)
Description copied from interface: IValidator
set the rule set to be used for validating the components

Specified by:
setRuleSet in interface IValidator

validateRules

protected void validateRules(IValidationContext context,
                             List<List<IRule>> rulesListList)
validate the specified component according to the list of lists of rules. This list is typically generated by a call to createRulesList.

Parameters:
context - - supplied by engine
rulesListList - - list of rule lists for this component

validate

public void validate(IValidationContext context,
                     Object component)
used to validate single components.

Specified by:
validate in interface IValidator
Parameters:
context - supplied by the engine
component - - control to be validated
See Also:
ValidationProcessManager

checkValidationContext

protected boolean checkValidationContext(AccessibilityValidationContext context)