org.eclipse.actf.validation.core
Class DefaultValidationProcessMappingFactory
java.lang.Object
org.eclipse.actf.validation.core.DefaultValidationProcessMappingFactory
- All Implemented Interfaces:
- IValidationProcessMappingFactory
public class DefaultValidationProcessMappingFactory
- extends Object
- implements IValidationProcessMappingFactory
default factory for mapping validators to validation processes. A factory
instance, once obtained, can be used to find the validation process class
name for a given validator.
Note: Mappings are currently hard-coded. Future work incdlues
permitting specification of these mappings in the validation document
rulebases.
- Author:
- John Buslawski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATION_PROCESS_MAP
protected static final Map VALIDATION_PROCESS_MAP
DefaultValidationProcessMappingFactory
protected DefaultValidationProcessMappingFactory()
getInstance
public static DefaultValidationProcessMappingFactory getInstance()
- Returns:
- The unique instance of this class.
getValidationProcessMapping
public String getValidationProcessMapping(String name)
- gets the validation process class name for this validator name.
- Specified by:
getValidationProcessMapping
in interface IValidationProcessMappingFactory
- Parameters:
name
- -
name of the validator class
- Returns:
- the name of the validation process class that uses this validator
getValidationProcessMappings
public Map getValidationProcessMappings()
- gets all of the mappings for validators and validation processes
- Specified by:
getValidationProcessMappings
in interface IValidationProcessMappingFactory
- Returns:
- the map of validator name/validation process names
registerValidationProcessMapping
public void registerValidationProcessMapping(String validatorName,
String validationProcessName)
- Description copied from interface:
IValidationProcessMappingFactory
- registers a validation process for the given validator
- Specified by:
registerValidationProcessMapping
in interface IValidationProcessMappingFactory
- Parameters:
validatorName
- -
name of the validator under which the validation process is
being registeredvalidationProcessName
- -
the class name of the validation process for this validator