markap14 commented on code in PR #11130:
URL: https://github.com/apache/nifi/pull/11130#discussion_r3261369806
##########
nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/parameter/ParameterContext.java:
##########
@@ -188,4 +188,22 @@ public interface ParameterContext extends ParameterLookup,
ComponentAuthorizable
* @return True if this inherits from the given ParameterContext
*/
boolean inheritsFrom(String parameterContextId);
+
+ /**
+ * Extracts the referenced parameter name from a one-to-one parameter
value reference.
+ * A one-to-one reference is a parameter value whose entire content is
exactly <code>#{parameterName}</code>
+ * with no surrounding text.
+ *
+ * @param value the parameter value to check
+ * @return the referenced parameter name if the value is a one-to-one
reference, or null otherwise
+ */
+ static String extractOneToOneParameterReference(final String value) {
Review Comment:
I'm not sure that this util method should really be on the interface. It
would make sense to pull this out into a separate util class.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]