|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.eclipse.actf.validation.core.AbstractValidationProcess
org.eclipse.actf.validation.core.AccessibilityValidationProcess
public class AccessibilityValidationProcess
a validation process that walks a hierarchy of GUI components and validates
each component with the appropriate validator. The GUI is traversed using
classes in the org.eclipse.actf.model.traverse
package.
ITreeNodeWalker
Field Summary |
---|
Fields inherited from class org.eclipse.actf.validation.core.AbstractValidationProcess |
---|
context, contextCache, execPoint, lastNotification, notificationIncrement, notificationPercent, progress, ruleBase, workEstimate |
Constructor Summary | |
---|---|
protected |
AccessibilityValidationProcess()
|
|
AccessibilityValidationProcess(IRuleBase iRuleBase,
ExecutionPoint execPoint,
IValidationContext context)
|
Method Summary | |
---|---|
protected void |
calculateWork(ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
visit the objects in the tree with the given target as the root. |
protected IValidationContext |
cloneContext(IRuleBase iRuleBase,
IValidationContext context)
|
void |
init()
perform any initialization necessary for the process. prepares the IValidationContext and
calculates initial work |
protected boolean |
pathMatchesExpression(Object target,
String regexp)
used by child classes within the model to determine if their path matches a reqular expression that identifies a rule base. |
void |
run()
|
protected void |
validate(ExecutionPoint execPoint,
IRuleBase ruleBase,
IValidationContext context)
validate the objects in the tree with the given target as the root. |
protected void |
validateChildren(Object target,
ExecutionPoint execPoint,
IRuleBase ruleBase,
IValidationContext context,
boolean validate)
Validate the child components of the given target. |
protected void |
validateComponent(Object target,
ExecutionPoint execPoint,
IRuleBase ruleBase,
IValidationContext context)
used to validate single components. |
protected void |
visitComponent(Object target,
ExecutionPoint execPoint,
IRuleBase iRuleBase,
IValidationContext context)
used to visit a single component. |
Methods inherited from class org.eclipse.actf.validation.core.AbstractValidationProcess |
---|
getExecutionPoint, getNotificationPercent, getProgress, getRuleBase, getValidationContext, getWorkEstimate, incrementProgress, initProgressEstimates, isTerminated, resetProgress, setExecutionPoint, setNotificationPercent, setProgress, setRuleBase, setValidationContext |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessibilityValidationProcess(IRuleBase iRuleBase, ExecutionPoint execPoint, IValidationContext context)
protected AccessibilityValidationProcess()
Method Detail |
---|
public void init() throws ValidationProcessException
IValidationContext
and
calculates initial work
ValidationProcessException
IValidationContext
public void run() throws ValidationProcessException
ValidationProcessException
validate(ExecutionPoint, IRuleBase, IValidationContext)
protected void validate(ExecutionPoint execPoint, IRuleBase ruleBase, IValidationContext context) throws ValidationProcessException
execPoint
- --
the ExecutionPoint that triggered this validationruleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
protected void validateComponent(Object target, ExecutionPoint execPoint, IRuleBase ruleBase, IValidationContext context) throws ValidationProcessException
target
- --
the target object to validateexecPoint
- --
the ExecutionPoint that triggered this validationruleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
protected void validateChildren(Object target, ExecutionPoint execPoint, IRuleBase ruleBase, IValidationContext context, boolean validate) throws ValidationProcessException
target
- --
the target object whose children are to be validatedexecPoint
- --
the ExecutionPoint that triggered this validationruleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rulesvalidate
- --
validate (true) or visit only
ValidationProcessException
protected IValidationContext cloneContext(IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
iRuleBase
- context
-
ValidationProcessException
protected boolean pathMatchesExpression(Object target, String regexp)
target
- -
target object we are trying to matchregexp
- -
the regular expression that identifies a rule base
protected void calculateWork(ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
execPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
protected void visitComponent(Object target, ExecutionPoint execPoint, IRuleBase iRuleBase, IValidationContext context) throws ValidationProcessException
target
- --
the target object to validateexecPoint
- --
the ExecutionPoint that triggered this validationiRuleBase
- --
the IRuleBase that matches this targetcontext
- --
the IValidationContext to use when evaluating rules
ValidationProcessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |