Class Validators
java.lang.Object
org.apache.daffodil.api.validation.Validators
Access SPI registered
ValidatorFactory
instances.
Registered instances provide a unique name for lookup.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorFactory
Attempt to find the factorystatic ValidatorFactory
Get the factory by name or throwstatic boolean
isRegistered
(String name) Check for registration of named factorylist()
Get a list of available validator names
-
Method Details
-
get
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
Attempt to find the factory- Parameters:
name
- registered name of the validator factory- Returns:
ValidatorFactory
factory instance or null if not found
-
isRegistered
Check for registration of named factory- Parameters:
name
- registered name of the validator factory- Returns:
- is factory registered
-
list
Get a list of available validator names- Returns:
- array of validator names
-