|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.core.ValidationProcessManager
public class ValidationProcessManager
entry point for the ACTF validation engine and the point at which all validation processes are initiated. A typical use is:
ValidationProcessManager vpm = ValidationProcessManager.getInstance(); vpm.init(); vpm.initiateValidation(...);
During the manager's lifetime, it receives execution point notifications and starts the validation processes associated with these execution points.
init()
,
initiateValidation(ExecutionPoint)
Constructor Summary | |
---|---|
protected |
ValidationProcessManager()
|
Method Summary | |
---|---|
ExecutionPoint |
createEventExecutionPointForTarget(String execPointName,
Object target,
Object event)
|
ExecutionPoint |
createMethodExecutionPointForTarget(String execPointName,
Object target,
Object[] arguments,
Member member)
|
protected ValidationReporter |
createReporter()
|
protected IRuleBase |
findRuleBaseForTarget(Object target)
|
protected IRuleBase |
findRuleBaseForTarget(String targetName)
|
static ValidationProcessManager |
getInstance()
|
ValidationReporter |
getReporter()
get the reporter used by this manager |
String |
getValidationProcessName(String validatorName)
Gets the IValidationProcess class name for this IValidator name. |
void |
init()
initializes the validation process manager. |
void |
initiateValidation(ExecutionPoint execPoint)
Receives an ExecutionPoint and starts a IValidationProcess. |
void |
initiateValidation(ExecutionPoint[] execPoints)
Receives an array of ExecutionPoints and starts a IValidationProcess for each one. |
void |
initiateValidation(ExecutionPoint[] execPoints,
Map bridgeMap)
Receives an array of ExecutionPoints and a component bridge map and starts a IValidationProcess. |
void |
initiateValidation(ExecutionPoint execPoint,
Map bridgeMap)
Receives an ExecutionPoint and a component bridge map and starts a IValidationProcess. |
void |
registerProcess(String validatorName,
String vpClassName)
Registers a IValidator/IValidationProcess pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ValidationProcessManager()
Method Detail |
---|
public static ValidationProcessManager getInstance()
public void init()
RuleBaseManager
RuleBaseManager
,
DocumentRuleBaseDescriptor
,
IValidationProcess
public void registerProcess(String validatorName, String vpClassName)
validatorName
- --
the IValidator class namevpClassName
- -
the IValidationProcess class namepublic String getValidationProcessName(String validatorName)
validatorName
- --
the IValidator class name
public void initiateValidation(ExecutionPoint[] execPoints) throws ValidationProcessException
execPoints
- --
the array of execution points to validate
ValidationProcessException
public void initiateValidation(ExecutionPoint[] execPoints, Map bridgeMap) throws ValidationProcessException
A component bridge map is used to traverse trees of GUI components of differing models. The map contains keys that are components of one model that are to serve as the parents of components of another model. This tactic is useful when traversing types of components that do not allow access to children or parents of different models.
execPoints
- --
the array of execution points to validatebridgeMap
- --
the component bridge map for these validations
ValidationProcessException
public void initiateValidation(ExecutionPoint execPoint) throws ValidationProcessException
execPoint
- --
the execution point that begins a validation
ValidationProcessException
public void initiateValidation(ExecutionPoint execPoint, Map bridgeMap) throws ValidationProcessException
execPoint
- --
the execution point that begins a validationbridgeMap
- --
sets the component bridge map for this validation
ValidationProcessException
protected ValidationReporter createReporter()
public ValidationReporter getReporter()
protected IRuleBase findRuleBaseForTarget(Object target)
protected IRuleBase findRuleBaseForTarget(String targetName)
public ExecutionPoint createMethodExecutionPointForTarget(String execPointName, Object target, Object[] arguments, Member member)
public ExecutionPoint createEventExecutionPointForTarget(String execPointName, Object target, Object event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |