public interface ValidationContext
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotationData() |
ControllerServiceLookup |
getControllerServiceLookup() |
ValidationContext |
getControllerServiceValidationContext(ControllerService controllerService) |
Map<PropertyDescriptor,String> |
getProperties() |
PropertyValue |
getProperty(PropertyDescriptor property) |
boolean |
isExpressionLanguagePresent(String value) |
boolean |
isExpressionLanguageSupported(String propertyName) |
boolean |
isValidationRequired(ControllerService service)
There are times when the framework needs to consider a component valid,
even if it references an invalid ControllerService.
|
ExpressionLanguageCompiler |
newExpressionLanguageCompiler() |
PropertyValue |
newPropertyValue(String value) |
ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup which can be used to obtain
Controller ServicesValidationContext getControllerServiceValidationContext(ControllerService controllerService)
controllerService - to lookup the validation context ofControllerServiceExpressionLanguageCompiler newExpressionLanguageCompiler()
ExpressionLanguageCompiler that can be used to
compile & evaluate Attribute ExpressionsPropertyValue getProperty(PropertyDescriptor property)
property - being validatedPropertyValue newPropertyValue(String value)
value - to make a PropertyValue object forMap<PropertyDescriptor,String> getProperties()
String getAnnotationData()
boolean isValidationRequired(ControllerService service)
false if the component is to be considered valid even
if the given Controller Service is referenced and is invalid.service - to check if validation is requiredfalse if the component is to be considered valid
even if the given Controller Service is referenced and is invalidboolean isExpressionLanguagePresent(String value)
value - to test whether expression language is presenttrue if the given value contains a NiFi Expression
Language expression, false if it does notboolean isExpressionLanguageSupported(String propertyName)
propertyName - to test whether expression language is supportedtrue if the property with the given name supports
the NiFi Expression Language, false if the property does not
support the Expression Language or is not a valid property nameCopyright © 2016 Apache NiFi Project. All rights reserved.