public class MockPropertyValue extends Object implements PropertyValue
Modifier and Type | Field and Description |
---|---|
private Boolean |
expectExpressions |
private ExpressionLanguageScope |
expressionLanguageScope |
private boolean |
expressionsEvaluated |
private PropertyDescriptor |
propertyDescriptor |
private String |
rawValue |
private MockControllerServiceLookup |
serviceLookup |
private PropertyValue |
stdPropValue |
private VariableRegistry |
variableRegistry |
Modifier | Constructor and Description |
---|---|
|
MockPropertyValue(String rawValue) |
|
MockPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup) |
private |
MockPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
PropertyDescriptor propertyDescriptor,
boolean alreadyEvaluated,
VariableRegistry variableRegistry) |
|
MockPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
VariableRegistry variableRegistry) |
|
MockPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
VariableRegistry variableRegistry,
PropertyDescriptor propertyDescriptor) |
private final String rawValue
private final Boolean expectExpressions
private final ExpressionLanguageScope expressionLanguageScope
private final MockControllerServiceLookup serviceLookup
private final PropertyDescriptor propertyDescriptor
private final PropertyValue stdPropValue
private final VariableRegistry variableRegistry
private boolean expressionsEvaluated
public MockPropertyValue(String rawValue)
public MockPropertyValue(String rawValue, ControllerServiceLookup serviceLookup)
public MockPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, VariableRegistry variableRegistry)
public MockPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, VariableRegistry variableRegistry, PropertyDescriptor propertyDescriptor)
private MockPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, PropertyDescriptor propertyDescriptor, boolean alreadyEvaluated, VariableRegistry variableRegistry)
private void ensureExpressionsEvaluated()
private void validateExpressionScope(boolean attributesAvailable)
public String getValue()
getValue
in interface PropertyValue
public Integer asInteger()
asInteger
in interface PropertyValue
public Long asLong()
asLong
in interface PropertyValue
public Boolean asBoolean()
asBoolean
in interface PropertyValue
public Float asFloat()
asFloat
in interface PropertyValue
public Double asDouble()
asDouble
in interface PropertyValue
public Long asTimePeriod(TimeUnit timeUnit)
asTimePeriod
in interface PropertyValue
public Double asDataSize(DataUnit dataUnit)
asDataSize
in interface PropertyValue
private void markEvaluated()
public PropertyValue evaluateAttributeExpressions() throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(Map<String,String> attributes) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(Map<String,String> attributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator, Map<String,String> stateValues) throws ProcessException
evaluateAttributeExpressions
in interface PropertyValue
ProcessException
public ControllerService asControllerService()
asControllerService
in interface PropertyValue
public <T extends ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException
asControllerService
in interface PropertyValue
IllegalArgumentException
public boolean isSet()
isSet
in interface PropertyValue
public boolean isExpressionLanguagePresent()
isExpressionLanguagePresent
in interface PropertyValue
Copyright © 2021 Apache NiFi Project. All rights reserved.