Package org.apache.nifi.components
Interface Validator
- All Known Implementing Classes:
PropertyDescriptor.ConstrainedSetValidator
,PropertyDescriptor.ResourceDefinitionValidator
public interface Validator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvalidate
(String subject, String input, ValidationContext context)
-
Field Details
-
INVALID
Validator object providing validation behavior in which validation always fails -
VALID
Validator object providing validation behavior in which validation always passes
-
-
Method Details
-
validate
- Parameters:
subject
- what is being validatedinput
- the string to be validatedcontext
- the ValidationContext to use when validating properties- Returns:
- ValidationResult
- Throws:
NullPointerException
- of given input is null
-