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 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
public PropertyValue evaluateAttributeExpressions() 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(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, Map<String,String> additionalAttributes) 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, 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 ResourceReference asResource()
asResource
in interface PropertyValue
public ResourceReferences asResources()
asResources
in interface PropertyValue
public boolean isSet()
isSet
in interface PropertyValue
public boolean isExpressionLanguagePresent()
isExpressionLanguagePresent
in interface PropertyValue
Copyright © 2021 Apache NiFi Project. All rights reserved.