Class Validators

java.lang.Object
org.apache.daffodil.api.validation.Validators

public class Validators extends Object
Access SPI registered ValidatorFactory instances.

Registered instances provide a unique name for lookup.

  • Method Details

    • get

      public static ValidatorFactory get(String name) throws ValidatorNotRegisteredException
      Get the factory by name or throw
      Parameters:
      name - registered name of the validator factory
      Returns:
      ValidatorFactory the factory instance
      Throws:
      ValidatorNotRegisteredException - when factory is not found in the registered services
    • find

      public static ValidatorFactory find(String name)
      Attempt to find the factory
      Parameters:
      name - registered name of the validator factory
      Returns:
      ValidatorFactory factory instance or null if not found
    • isRegistered

      public static boolean isRegistered(String name)
      Check for registration of named factory
      Parameters:
      name - registered name of the validator factory
      Returns:
      is factory registered
    • list

      public static List<String> list()
      Get a list of available validator names
      Returns:
      array of validator names