Class ValidatorFactory

java.lang.Object
org.daisy.validator.ValidatorFactory

public class ValidatorFactory extends Object
Simple factory for instantiating a Validator based on its identifier
Author:
Joel HÃ¥kansson
  • Constructor Details

    • ValidatorFactory

      protected ValidatorFactory()
  • Method Details

    • newInstance

      public static ValidatorFactory newInstance()
      Obtains a new instance of a ValidatorFactory.
      Returns:
      returns a new ValidatorFactory instance.
    • newValidator

      public Validator newValidator(String identifier)
      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