Package org.apache.nifi.parameter
Interface ParameterLookup
public interface ParameterLookup
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionOptional
<org.apache.nifi.parameter.Parameter> getParameter
(String parameterName) Returns the Parameter with the given name, considering the base and all inherited ParameterContexts.long
Indicates the current Version of the Parameter Context.boolean
isEmpty()
Returns false if any Parameters are available, true if no Parameters have been defined in this or any inherited ParameterContexts.
-
Field Details
-
EMPTY
-
-
Method Details
-
getParameter
Returns the Parameter with the given name, considering the base and all inherited ParameterContexts.- Parameters:
parameterName
- the name of the Parameter- Returns:
- the Parameter with the given name or an empty Optional if no Parameter exists with that name
-
isEmpty
boolean isEmpty()Returns false if any Parameters are available, true if no Parameters have been defined in this or any inherited ParameterContexts.- Returns:
- true if empty
-
getVersion
long getVersion()Indicates the current Version of the Parameter Context. Each time that the Parameter Context is updated, its version is incremented. This allows other components to know whether or not the values have changed since some other point in time. The version may or may not be persisted across restarts of the application.- Returns:
- the current version
-