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 ValidatorFactoryAttempt to find the factorystatic ValidatorFactoryGet the factory by name or throwstatic booleanisRegistered(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:
ValidatorFactorythe 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:
ValidatorFactoryfactory 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
-