org.eclipse.actf.validation.validators
Interface IValidationContextFactory

All Known Implementing Classes:
DefaultValidationContextFactory

public interface IValidationContextFactory

A factory for validation context instances. A factory instance, once obtained, can be used to create validation contexts for a given type.


Method Summary
 IValidationContext getContextByProcessName(String procName)
          creates and initialized a validation context for the given validation process name.
 IValidationContext getContextInstance(String name)
          gets an instance of the validation context for the given name.
 void registerContextByProcessName(String processName, String contextClassName)
          registers a validation context for the validation process type
 void registerContextClassName(String name, String contextClassName)
          registers a validation context for the given type
 

Method Detail

registerContextClassName

void registerContextClassName(String name,
                              String contextClassName)
registers a validation context for the given type

Parameters:
name - - name under which the context is being registered
contextClassName - - the class name of the context implementation

registerContextByProcessName

void registerContextByProcessName(String processName,
                                  String contextClassName)
registers a validation context for the validation process type

Parameters:
processName - - validation process name under which the context is being registered
contextClassName - - the class name of the context implementation

getContextInstance

IValidationContext getContextInstance(String name)
gets an instance of the validation context for the given name. The context must have been previously registered via the registerContextClassName method.

Parameters:
name - - name of the validation context
Returns:
the registered conetxt for the given name or null if there was no context registered under that name

getContextByProcessName

IValidationContext getContextByProcessName(String procName)
creates and initialized a validation context for the given validation process name. The context must have been previously registered via the registerContextClassName method.

Parameters:
procName - - name of the validation process
Returns:
the registered validation context for the given process name or null if there was no conext registered under that name