public class StandardPropertyValue extends Object implements PropertyValue
| Modifier and Type | Field and Description |
|---|---|
private ParameterLookup |
parameterLookup |
private PreparedQuery |
preparedQuery |
private String |
rawValue |
private ResourceContext |
resourceContext |
private ControllerServiceLookup |
serviceLookup |
private VariableRegistry |
variableRegistry |
| Constructor and Description |
|---|
StandardPropertyValue(ResourceContext resourceContext,
String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup) |
StandardPropertyValue(ResourceContext resourceContext,
String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup,
PreparedQuery preparedQuery,
VariableRegistry variableRegistry)
Constructs a new StandardPropertyValue with the given value & service
lookup and indicates whether or not the rawValue contains any NiFi
Expressions.
|
StandardPropertyValue(ResourceContext resourceContext,
String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup,
VariableRegistry variableRegistry) |
StandardPropertyValue(String rawValue,
ControllerServiceLookup serviceLookup,
ParameterLookup parameterLookup) |
private final String rawValue
private final ControllerServiceLookup serviceLookup
private final PreparedQuery preparedQuery
private final VariableRegistry variableRegistry
private final ParameterLookup parameterLookup
private final ResourceContext resourceContext
public StandardPropertyValue(String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup)
public StandardPropertyValue(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup)
public StandardPropertyValue(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, VariableRegistry variableRegistry)
public StandardPropertyValue(ResourceContext resourceContext, String rawValue, ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, PreparedQuery preparedQuery, VariableRegistry variableRegistry)
StandardPropertyValue(ResourceContext, String, ControllerServiceLookup, ParameterLookup, VariableRegistry)
constructor should be used or true should be passed.
However, if it is known that the value contains no NiFi Expression, that
information should be provided so that calls to
evaluateAttributeExpressions() are much more efficientresourceContext - the context in which resources are to be understoodrawValue - valueserviceLookup - lookupparameterLookup - the parameter lookuppreparedQuery - queryvariableRegistry - variableRegistrypublic String getValue()
getValue in interface PropertyValuepublic Integer asInteger()
asInteger in interface PropertyValuepublic Long asLong()
asLong in interface PropertyValuepublic Boolean asBoolean()
asBoolean in interface PropertyValuepublic Float asFloat()
asFloat in interface PropertyValuepublic Double asDouble()
asDouble in interface PropertyValuepublic Long asTimePeriod(TimeUnit timeUnit)
asTimePeriod in interface PropertyValuepublic Double asDataSize(DataUnit dataUnit)
asDataSize in interface PropertyValuepublic PropertyValue evaluateAttributeExpressions() throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(Map<String,String> attributes) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(Map<String,String> attributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic PropertyValue evaluateAttributeExpressions(FlowFile flowFile, Map<String,String> additionalAttributes, AttributeValueDecorator decorator, Map<String,String> stateValues) throws ProcessException
evaluateAttributeExpressions in interface PropertyValueProcessExceptionpublic ControllerService asControllerService()
asControllerService in interface PropertyValuepublic <T extends ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException
asControllerService in interface PropertyValueIllegalArgumentExceptionpublic ResourceReference asResource()
asResource in interface PropertyValuepublic ResourceReferences asResources()
asResources in interface PropertyValuepublic boolean isSet()
isSet in interface PropertyValuepublic boolean isExpressionLanguagePresent()
isExpressionLanguagePresent in interface PropertyValueCopyright © 2022 Apache NiFi Project. All rights reserved.