Package org.daisy.validator
Class ValidatorFactory
java.lang.Object
org.daisy.validator.ValidatorFactory
Simple factory for instantiating a Validator based on its identifier
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorFactory
Obtains a new instance of a ValidatorFactory.newValidator
(String identifier) Obtains a new instance of a Validator with the given identifier
-
Constructor Details
-
ValidatorFactory
protected ValidatorFactory()
-
-
Method Details
-
newInstance
Obtains a new instance of a ValidatorFactory.- Returns:
- returns a new ValidatorFactory instance.
-
newValidator
Obtains a new instance of a Validator with the given identifier- Parameters:
identifier
- a string that identifies the desired implementation- Returns:
- returns a Validator for the given identifier, or null if none is found
-