org.archiviststoolkit.model.validators
Class ValidatorFactory

java.lang.Object
  extended by org.archiviststoolkit.model.validators.ValidatorFactory

public class ValidatorFactory
extends java.lang.Object


Method Summary
 void addValidator(java.lang.Class clazz, ATValidator validator)
          Method to add a data validator
static ValidatorFactory getInstance()
           
 ATValidator getValidator(DomainObject objectToValidate)
           
 void removeValidator(java.lang.Class clazz)
          Method to remove a validator from the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ValidatorFactory getInstance()

addValidator

public void addValidator(java.lang.Class clazz,
                         ATValidator validator)
Method to add a data validator

Parameters:
clazz - The class to add the validator for
validator - The validator

removeValidator

public void removeValidator(java.lang.Class clazz)
Method to remove a validator from the cache

Parameters:
clazz - The class which is used as the key

getValidator

public ATValidator getValidator(DomainObject objectToValidate)