public class MockValidationContext extends Object implements ValidationContext, ControllerServiceLookup
Modifier and Type | Field and Description |
---|---|
private MockProcessContext |
context |
private Map<String,Boolean> |
expressionLanguageSupported |
private StateManager |
stateManager |
private VariableRegistry |
variableRegistry |
Constructor and Description |
---|
MockValidationContext(MockProcessContext processContext,
StateManager stateManager,
VariableRegistry variableRegistry) |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationData() |
ControllerService |
getControllerService(String identifier) |
Set<String> |
getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType) |
ControllerServiceLookup |
getControllerServiceLookup() |
String |
getControllerServiceName(String serviceIdentifier) |
ValidationContext |
getControllerServiceValidationContext(ControllerService controllerService) |
Map<PropertyDescriptor,String> |
getProperties() |
PropertyValue |
getProperty(PropertyDescriptor property) |
boolean |
isControllerServiceEnabled(ControllerService service) |
boolean |
isControllerServiceEnabled(String serviceIdentifier) |
boolean |
isControllerServiceEnabling(String serviceIdentifier) |
boolean |
isExpressionLanguagePresent(String value) |
boolean |
isExpressionLanguageSupported(String propertyName) |
boolean |
isValidationRequired(ControllerService service) |
ExpressionLanguageCompiler |
newExpressionLanguageCompiler() |
PropertyValue |
newPropertyValue(String rawValue) |
private final MockProcessContext context
private final StateManager stateManager
private final VariableRegistry variableRegistry
public MockValidationContext(MockProcessContext processContext, StateManager stateManager, VariableRegistry variableRegistry)
public ControllerService getControllerService(String identifier)
getControllerService
in interface ControllerServiceLookup
public PropertyValue newPropertyValue(String rawValue)
newPropertyValue
in interface ValidationContext
public ExpressionLanguageCompiler newExpressionLanguageCompiler()
newExpressionLanguageCompiler
in interface ValidationContext
public ValidationContext getControllerServiceValidationContext(ControllerService controllerService)
getControllerServiceValidationContext
in interface ValidationContext
public PropertyValue getProperty(PropertyDescriptor property)
getProperty
in interface ValidationContext
public Map<PropertyDescriptor,String> getProperties()
getProperties
in interface ValidationContext
public String getAnnotationData()
getAnnotationData
in interface ValidationContext
public Set<String> getControllerServiceIdentifiers(Class<? extends ControllerService> serviceType)
getControllerServiceIdentifiers
in interface ControllerServiceLookup
public ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup
in interface ValidationContext
public boolean isControllerServiceEnabled(String serviceIdentifier)
isControllerServiceEnabled
in interface ControllerServiceLookup
public boolean isControllerServiceEnabled(ControllerService service)
isControllerServiceEnabled
in interface ControllerServiceLookup
public String getControllerServiceName(String serviceIdentifier)
getControllerServiceName
in interface ControllerServiceLookup
public boolean isValidationRequired(ControllerService service)
isValidationRequired
in interface ValidationContext
public boolean isControllerServiceEnabling(String serviceIdentifier)
isControllerServiceEnabling
in interface ControllerServiceLookup
public boolean isExpressionLanguagePresent(String value)
isExpressionLanguagePresent
in interface ValidationContext
public boolean isExpressionLanguageSupported(String propertyName)
isExpressionLanguageSupported
in interface ValidationContext
Copyright © 2017 Apache NiFi Project. All rights reserved.