org.eclipse.actf.validation.validators
Interface IValidator

All Known Implementing Classes:
DomAccessibilityValidator, GenericAccessibilityValidator, MozillaDomAccessibilityValidator

public interface IValidator

implemented by users who wish to validate a component, and to verify that certain features and properties of these components are in accord with pre-defined constraints as specified in a IRuleSet within a IRuleBase, such as an XML validation document. An example is packaged with this application for performing validation of Swing GUIs with respect to their degree of accessibility.

Author:
John Buslawski
See Also:
IRuleBase, IRuleSet

Method Summary
 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)
          validates an individual component.
 

Method Detail

setRuleSet

void setRuleSet(IRuleSet ruleSet)
set the rule set to be used for validating the components

Parameters:
ruleSet -

getRuleSet

IRuleSet getRuleSet()
return the ruleSet being used by this validator

Returns:
ruleSet instance

validate

void validate(IValidationContext context,
              Object component)
validates an individual component. This method is called by the IValidationProcess in response to ExecutionPoint objects.

Parameters:
component - -- component to validate
See Also:
ValidationProcessManager