public class StandardParameterReference extends Object implements ParameterReference
| Modifier and Type | Field and Description |
|---|---|
private int |
endOffset |
private String |
parameterName |
private String |
referenceText |
private int |
startOffset |
| Constructor and Description |
|---|
StandardParameterReference(String parameterName,
int startOffset,
int endOffset,
String referenceText) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndOffset() |
String |
getParameterName() |
int |
getStartOffset() |
String |
getText() |
String |
getValue(ParameterLookup parameterLookup)
Returns the 'value' of the token.
|
boolean |
isEscapeSequence() |
boolean |
isParameterReference() |
private final String parameterName
private final int startOffset
private final int endOffset
private final String referenceText
public String getParameterName()
getParameterName in interface ParameterReferencepublic int getStartOffset()
getStartOffset in interface ParameterTokenpublic int getEndOffset()
getEndOffset in interface ParameterTokenpublic String getText()
getText in interface ParameterTokenpublic boolean isEscapeSequence()
isEscapeSequence in interface ParameterTokentrue if this token represents an escape sequence such as ##{param} or ## in the case of ###{param} or ####{param}, false if this
token does not represent an escape sequence.public boolean isParameterReference()
isParameterReference in interface ParameterTokentrue if this token represents a reference to a Parameter. If this method returns true, then this token can be cast
as a ParameterReference.public String getValue(ParameterLookup parameterLookup)
ParameterTokengetValue in interface ParameterTokenparameterLookup - the Parameter Lookup to use for looking up valuesCopyright © 2023 Apache NiFi Project. All rights reserved.