Package org.apache.nifi.util
Class MockPropertyValue
java.lang.Object
org.apache.nifi.util.MockPropertyValue
- All Implemented Interfaces:
org.apache.nifi.components.PropertyValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Booleanprivate final org.apache.nifi.expression.ExpressionLanguageScopeprivate booleanprivate final org.apache.nifi.components.PropertyDescriptorprivate final Stringprivate final MockControllerServiceLookupprivate final org.apache.nifi.components.PropertyValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionMockPropertyValue(String rawValue) MockPropertyValue(String rawValue, Map<String, String> environmentVariables) MockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, Map<String, String> environmentVariables) MockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, Map<String, String> environmentVariables, ParameterLookup parameterLookup) protectedMockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, org.apache.nifi.components.PropertyDescriptor propertyDescriptor, boolean alreadyEvaluated, Map<String, String> environmentVariables) protectedMockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, org.apache.nifi.components.PropertyDescriptor propertyDescriptor, boolean alreadyEvaluated, Map<String, String> environmentVariables, ParameterLookup parameterLookup) MockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, org.apache.nifi.components.PropertyDescriptor propertyDescriptor, Map<String, String> environmentVariables) -
Method Summary
Modifier and TypeMethodDescription<E extends Enum<E>>
EasAllowableValue(Class<E> enumType) org.apache.nifi.controller.ControllerService<T extends org.apache.nifi.controller.ControllerService>
TasControllerService(Class<T> serviceType) asDataSize(org.apache.nifi.processor.DataUnit dataUnit) asDouble()asFloat()asLong()org.apache.nifi.components.resource.ResourceReferenceorg.apache.nifi.components.resource.ResourceReferencesasTimePeriod(TimeUnit timeUnit) private voidorg.apache.nifi.components.PropertyValueorg.apache.nifi.components.PropertyValueevaluateAttributeExpressions(Map<String, String> attributes) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(Map<String, String> attributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator, Map<String, String> stateValues) org.apache.nifi.components.PropertyValueevaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.expression.AttributeValueDecorator decorator) getValue()booleanbooleanisSet()private voidtoString()private voidvalidateExpressionScope(boolean flowFileProvided, boolean additionalAttributesAvailable)
-
Field Details
-
rawValue
-
expectExpressions
-
expressionLanguageScope
private final org.apache.nifi.expression.ExpressionLanguageScope expressionLanguageScope -
serviceLookup
-
propertyDescriptor
private final org.apache.nifi.components.PropertyDescriptor propertyDescriptor -
stdPropValue
private final org.apache.nifi.components.PropertyValue stdPropValue -
environmentVariables
-
expressionsEvaluated
private boolean expressionsEvaluated
-
-
Constructor Details
-
MockPropertyValue
-
MockPropertyValue
-
MockPropertyValue
-
MockPropertyValue
public MockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, Map<String, String> environmentVariables, ParameterLookup parameterLookup) -
MockPropertyValue
-
MockPropertyValue
-
MockPropertyValue
protected MockPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, org.apache.nifi.components.PropertyDescriptor propertyDescriptor, boolean alreadyEvaluated, Map<String, String> environmentVariables, ParameterLookup parameterLookup)
-
-
Method Details
-
ensureExpressionsEvaluated
private void ensureExpressionsEvaluated() -
validateExpressionScope
private void validateExpressionScope(boolean flowFileProvided, boolean additionalAttributesAvailable) -
getValue
- Specified by:
getValuein interfaceorg.apache.nifi.components.PropertyValue
-
asInteger
- Specified by:
asIntegerin interfaceorg.apache.nifi.components.PropertyValue
-
asLong
- Specified by:
asLongin interfaceorg.apache.nifi.components.PropertyValue
-
asBoolean
- Specified by:
asBooleanin interfaceorg.apache.nifi.components.PropertyValue
-
asFloat
- Specified by:
asFloatin interfaceorg.apache.nifi.components.PropertyValue
-
asDouble
- Specified by:
asDoublein interfaceorg.apache.nifi.components.PropertyValue
-
asTimePeriod
- Specified by:
asTimePeriodin interfaceorg.apache.nifi.components.PropertyValue
-
asDuration
- Specified by:
asDurationin interfaceorg.apache.nifi.components.PropertyValue
-
asDataSize
- Specified by:
asDataSizein interfaceorg.apache.nifi.components.PropertyValue
-
markEvaluated
private void markEvaluated() -
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions() throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(Map<String, String> attributes) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(Map<String, String> attributes, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator) throws org.apache.nifi.processor.exception.ProcessException- Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
evaluateAttributeExpressions
public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> additionalAttributes, org.apache.nifi.expression.AttributeValueDecorator decorator, Map<String, throws org.apache.nifi.processor.exception.ProcessExceptionString> stateValues) - Specified by:
evaluateAttributeExpressionsin interfaceorg.apache.nifi.components.PropertyValue- Throws:
org.apache.nifi.processor.exception.ProcessException
-
asControllerService
public org.apache.nifi.controller.ControllerService asControllerService()- Specified by:
asControllerServicein interfaceorg.apache.nifi.components.PropertyValue
-
asControllerService
public <T extends org.apache.nifi.controller.ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException - Specified by:
asControllerServicein interfaceorg.apache.nifi.components.PropertyValue- Throws:
IllegalArgumentException
-
asResource
public org.apache.nifi.components.resource.ResourceReference asResource()- Specified by:
asResourcein interfaceorg.apache.nifi.components.PropertyValue
-
asResources
public org.apache.nifi.components.resource.ResourceReferences asResources()- Specified by:
asResourcesin interfaceorg.apache.nifi.components.PropertyValue
-
asAllowableValue
- Specified by:
asAllowableValuein interfaceorg.apache.nifi.components.PropertyValue- Throws:
IllegalArgumentException
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceorg.apache.nifi.components.PropertyValue
-
toString
-
isExpressionLanguagePresent
public boolean isExpressionLanguagePresent()- Specified by:
isExpressionLanguagePresentin interfaceorg.apache.nifi.components.PropertyValue
-