org.eclipse.actf.validation.validators
Class AccessibilityValidationContext

java.lang.Object
  extended by org.eclipse.actf.validation.validators.AbstractValidationContext
      extended by org.eclipse.actf.validation.validators.AccessibilityValidationContext
All Implemented Interfaces:
Cloneable, IValidationContext

public class AccessibilityValidationContext
extends AbstractValidationContext

a wrapper class for the IRuleBase properties and selected global properties that are necessary to validate a component.

Author:
John Buslawski

Field Summary
 
Fields inherited from class org.eclipse.actf.validation.validators.AbstractValidationContext
contextMap
 
Constructor Summary
AccessibilityValidationContext()
           
AccessibilityValidationContext(IModel arch, ICodeProcessor codeProc, IReporter reporter, INodeLocator locator, Set validatedComps, Map componentMap)
           
 
Method Summary
 ICodeProcessor getCodeProcessor()
          convenience method for obtaining the code processor associated with this context.
 IConfiguration getConfiguration()
          convenience method for obtaining the configuration associated with this context.
 Map getElementBridgeMap()
          convenience method for obtaining the component bridge map associated with this context.
 IModel getModel()
          convenience method for obtaining the model associated with this context.
 INodeLocator getNodeLocator()
          convenience method for obtaining the locator associated with this context.
 IReporter getReporter()
          convenience method for obtaining the reporter associated with this context.
 Set getValidatedComponents()
          convenience method for obtaining the set of previously validated components from this context.
 void setActfConfiguration(IConfiguration config)
          set the configuration for this context.
 void setArchitecture(IModel model)
          set the model for this context.
 void setCodeProcessor(ICodeProcessor cp)
          set the code processor for this context.
 void setElementBridgeMap(Map compMap)
          set the component bridge map for this context.
 void setElementLocator(INodeLocator locator)
          set the locator for this context.
 void setReporter(IReporter reporter)
          set the reporter for this context.
 void setValidatedComponents(Set valComp)
          set the set of previously validated components for this context.
 
Methods inherited from class org.eclipse.actf.validation.validators.AbstractValidationContext
clone, getParameter, setParameter
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessibilityValidationContext

public AccessibilityValidationContext()

AccessibilityValidationContext

public AccessibilityValidationContext(IModel arch,
                                      ICodeProcessor codeProc,
                                      IReporter reporter,
                                      INodeLocator locator,
                                      Set validatedComps,
                                      Map componentMap)
Method Detail

getModel

public IModel getModel()
convenience method for obtaining the model associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.MODEL)

Returns:
model of this context

getCodeProcessor

public ICodeProcessor getCodeProcessor()
convenience method for obtaining the code processor associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.CODE_PROCESSOR)

Returns:
code processor of this context

getNodeLocator

public INodeLocator getNodeLocator()
convenience method for obtaining the locator associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.ELEMENT_LOCATOR)

Returns:
locator of this context

getElementBridgeMap

public Map getElementBridgeMap()
convenience method for obtaining the component bridge map associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.ELEMENT_BRIDGE_MAP)

Returns:
component bridge map of this context

getConfiguration

public IConfiguration getConfiguration()
convenience method for obtaining the configuration associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.CONFIGURATION

Returns:
configuration of this context

getReporter

public IReporter getReporter()
convenience method for obtaining the reporter associated with this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.REPORTER)

Returns:
reporter of this context

getValidatedComponents

public Set getValidatedComponents()
convenience method for obtaining the set of previously validated components from this context. This method is equivalent to (IModel) getParameter(ValidationContextConstants.VALIDATED_ELEMENTS)

Returns:
model of this context

setArchitecture

public void setArchitecture(IModel model)
set the model for this context. This method is equivalent to setParameter(ValidationContextConstants.MODEL, arch) so long as the model is not null

Parameters:
model - - must not be null

setCodeProcessor

public void setCodeProcessor(ICodeProcessor cp)
set the code processor for this context. This method is equivalent to setParameter(ValidationContextConstants.CODE_PROCESSOR, cp) so long as the code processor is not null

Parameters:
cp - - must not be null

setElementBridgeMap

public void setElementBridgeMap(Map compMap)
set the component bridge map for this context. This method is equivalent to setParameter(ValidationContextConstants.ELEMENT_BRIDGE_MAP, compMap)

Parameters:
compMap -

setElementLocator

public void setElementLocator(INodeLocator locator)
set the locator for this context. This method is equivalent to setParameter(ValidationContextConstants.ELEMENT_LOCATOR, locator) so long as the locator is not null

Parameters:
locator - - must not be null

setActfConfiguration

public void setActfConfiguration(IConfiguration config)
set the configuration for this context. This method is equivalent to setParameter(ValidationContextConstants.CONFIGURATION, config) so long as the configuration is not null

Parameters:
config - - must not be null

setReporter

public void setReporter(IReporter reporter)
set the reporter for this context. This method is equivalent to setParameter(ValidationContextConstants.REPORTER, reporter) so long as the reporter is not null

Parameters:
reporter - - must not be null

setValidatedComponents

public void setValidatedComponents(Set valComp)
set the set of previously validated components for this context. This method is equivalent to setParameter(ValidationContextConstants.VALIDATED_ELEMENTS, arch)

Parameters:
valComp -