public class AnchorDelimiterCharsTokenValueAssigner
extends java.lang.Object
Constructor and Description |
---|
AnchorDelimiterCharsTokenValueAssigner(java.lang.String content,
java.lang.String anchorPattern,
java.lang.String delimiterChars,
java.lang.String replaceText,
int replacePosition)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Execute the algorithm.
|
java.lang.String |
getResultContent()
Get the result content.
|
boolean |
isAnchorFound()
Get if the anchor was found.
|
boolean |
isTextReplaced()
Get if the text was replaced.
|
void |
setIncludeLineTerminatorsInDelimiterChars(boolean includeLineTerminatorsInDelimiterChars)
Set whether line terminator characters are added to the delimiter chars (default = true).
|
void |
setReplaceReverse(boolean replaceReverse)
Set if the assign algorithm works in reverse order (default: false).
|
public AnchorDelimiterCharsTokenValueAssigner(java.lang.String content, java.lang.String anchorPattern, java.lang.String delimiterChars, java.lang.String replaceText, int replacePosition)
content
- the content within the text is replacedanchorPattern
- the anchor patterndelimiterChars
- a set of delimiter chars which enfold the tokens (=values)replaceText
- the text to set/replace in the selected token (replacePosition)replacePosition
- the replace position/token number (1..n) starting from the anchorsetReplaceReverse(boolean)
public void setIncludeLineTerminatorsInDelimiterChars(boolean includeLineTerminatorsInDelimiterChars)
includeLineTerminatorsInDelimiterChars
- if true = add line terminator characters to the delimiter chars, or false = don't add line terminator characterspublic void setReplaceReverse(boolean replaceReverse)
replaceReverse
- true = the assign algorithm works in reverse orderpublic boolean execute()
public java.lang.String getResultContent()
public boolean isAnchorFound()
public boolean isTextReplaced()