public interface ValidationContext extends PropertyContext
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotationData() |
ControllerServiceLookup |
getControllerServiceLookup() |
ValidationContext |
getControllerServiceValidationContext(ControllerService controllerService) |
String |
getProcessGroupIdentifier()
Returns the identifier of the ProcessGroup that the component being validated lives in
|
Map<PropertyDescriptor,String> |
getProperties() |
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) |
getAllProperties, getPropertyControllerServiceLookup 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 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 nameString getProcessGroupIdentifier()
Copyright © 2019 Apache NiFi Project. All rights reserved.