Class StandardPropertyValue

java.lang.Object
org.apache.nifi.attribute.expression.language.StandardPropertyValue
All Implemented Interfaces:
org.apache.nifi.components.PropertyValue

public class StandardPropertyValue extends Object implements org.apache.nifi.components.PropertyValue
  • Field Details

    • rawValue

      private final String rawValue
    • serviceLookup

      private final org.apache.nifi.controller.ControllerServiceLookup serviceLookup
    • preparedQuery

      private final PreparedQuery preparedQuery
    • parameterLookup

      private final ParameterLookup parameterLookup
    • resourceContext

      private final org.apache.nifi.components.resource.ResourceContext resourceContext
  • Constructor Details

    • StandardPropertyValue

      public StandardPropertyValue(String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup)
    • StandardPropertyValue

      public StandardPropertyValue(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup)
    • StandardPropertyValue

      public StandardPropertyValue(org.apache.nifi.components.resource.ResourceContext resourceContext, String rawValue, org.apache.nifi.controller.ControllerServiceLookup serviceLookup, ParameterLookup parameterLookup, PreparedQuery preparedQuery)
      Constructs a new StandardPropertyValue with the given value invalid input: '&' service lookup and indicates whether or not the rawValue contains any NiFi Expressions. If it is unknown whether or not the value contains any NiFi Expressions, the StandardPropertyValue 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 efficient
      Parameters:
      resourceContext - the context in which resources are to be understood
      rawValue - value
      serviceLookup - lookup
      parameterLookup - the parameter lookup
      preparedQuery - query
  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface org.apache.nifi.components.PropertyValue
    • asInteger

      public Integer asInteger()
      Specified by:
      asInteger in interface org.apache.nifi.components.PropertyValue
    • asLong

      public Long asLong()
      Specified by:
      asLong in interface org.apache.nifi.components.PropertyValue
    • asBoolean

      public Boolean asBoolean()
      Specified by:
      asBoolean in interface org.apache.nifi.components.PropertyValue
    • asFloat

      public Float asFloat()
      Specified by:
      asFloat in interface org.apache.nifi.components.PropertyValue
    • asDouble

      public Double asDouble()
      Specified by:
      asDouble in interface org.apache.nifi.components.PropertyValue
    • asTimePeriod

      public Long asTimePeriod(TimeUnit timeUnit)
      Specified by:
      asTimePeriod in interface org.apache.nifi.components.PropertyValue
    • asDuration

      public Duration asDuration()
      Specified by:
      asDuration in interface org.apache.nifi.components.PropertyValue
    • asDataSize

      public Double asDataSize(org.apache.nifi.processor.DataUnit dataUnit)
      Specified by:
      asDataSize in interface org.apache.nifi.components.PropertyValue
    • evaluateAttributeExpressions

      public org.apache.nifi.components.PropertyValue evaluateAttributeExpressions() throws org.apache.nifi.processor.exception.ProcessException
      Specified by:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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:
      evaluateAttributeExpressions in interface org.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,String> stateValues) throws org.apache.nifi.processor.exception.ProcessException
      Specified by:
      evaluateAttributeExpressions in interface org.apache.nifi.components.PropertyValue
      Throws:
      org.apache.nifi.processor.exception.ProcessException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asControllerService

      public org.apache.nifi.controller.ControllerService asControllerService()
      Specified by:
      asControllerService in interface org.apache.nifi.components.PropertyValue
    • asControllerService

      public <T extends org.apache.nifi.controller.ControllerService> T asControllerService(Class<T> serviceType) throws IllegalArgumentException
      Specified by:
      asControllerService in interface org.apache.nifi.components.PropertyValue
      Throws:
      IllegalArgumentException
    • asResource

      public org.apache.nifi.components.resource.ResourceReference asResource()
      Specified by:
      asResource in interface org.apache.nifi.components.PropertyValue
    • asResources

      public org.apache.nifi.components.resource.ResourceReferences asResources()
      Specified by:
      asResources in interface org.apache.nifi.components.PropertyValue
    • asAllowableValue

      public <E extends Enum<E>> E asAllowableValue(Class<E> enumType) throws IllegalArgumentException
      Specified by:
      asAllowableValue in interface org.apache.nifi.components.PropertyValue
      Throws:
      IllegalArgumentException
    • isSet

      public boolean isSet()
      Specified by:
      isSet in interface org.apache.nifi.components.PropertyValue
    • isExpressionLanguagePresent

      public boolean isExpressionLanguagePresent()
      Specified by:
      isExpressionLanguagePresent in interface org.apache.nifi.components.PropertyValue