Package org.apache.nifi.parameter
Class StartCharacterEscape
java.lang.Object
org.apache.nifi.parameter.StartCharacterEscape
- All Implemented Interfaces:
ParameterToken
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetText()getValue(ParameterLookup parameterLookup) Returns the 'value' of the token.booleanboolean
-
Field Details
-
startOffset
private final int startOffset
-
-
Constructor Details
-
StartCharacterEscape
public StartCharacterEscape(int startOffset)
-
-
Method Details
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceParameterToken- Returns:
- the 0-based index in the String at which the token begins
-
getEndOffset
public int getEndOffset()- Specified by:
getEndOffsetin interfaceParameterToken- Returns:
- the 0-based index in the String at which the token ends
-
getText
- Specified by:
getTextin interfaceParameterToken- Returns:
- the portion of the input text that corresponds to this token
-
isEscapeSequence
public boolean isEscapeSequence()- Specified by:
isEscapeSequencein interfaceParameterToken- Returns:
trueif 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.
-
isParameterReference
public boolean isParameterReference()- Specified by:
isParameterReferencein interfaceParameterToken- Returns:
trueif this token represents a reference to a Parameter. If this method returnstrue, then this token can be cast as aParameterReference.
-
getValue
Description copied from interface:ParameterTokenReturns the 'value' of the token. If this token is a parameter reference, it will return the value of the Parameter, according to the given Parameter Context. If this token is an Escape Sequence, it will return the un-escaped version of the escape sequence.- Specified by:
getValuein interfaceParameterToken- Parameters:
parameterLookup- the Parameter Lookup to use for looking up values- Returns:
- the value of the Token
-