public class TokenReplacer extends Object implements StringProcessor
Modifier and Type | Field and Description |
---|---|
static char |
ESCAPE
The escape character.
|
static String |
OPTION_PREFIX
The prefix for an option token.
|
static char |
PREFIX_SEPARATOR
The separator between prefix and key.
|
static char |
TOKEN_END
The character ending a token.
|
static char |
TOKEN_START_1
First character of a Token start.
|
static char |
TOKEN_START_2
Second character of a Token start.
|
Constructor and Description |
---|
TokenReplacer(ControllerState controllerState) |
Modifier and Type | Method and Description |
---|---|
String |
process(String toProcess)
Resolves all Tokens ${option:optionName} and replaces them with the
appropriate value.
|
public static final char TOKEN_START_1
public static final char TOKEN_START_2
public static final char TOKEN_END
public static final char ESCAPE
public static final String OPTION_PREFIX
public static final char PREFIX_SEPARATOR
public TokenReplacer(ControllerState controllerState)
controllerState
- to init the token replacerpublic String process(String toProcess)
process
in interface StringProcessor
toProcess
- the String to remove tokens from, or null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.