|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.control.TokenReplacer
public class TokenReplacer
Replaces placeholder tokens like ${option:optionName} in a string by the resolved values. The escape character is the backslash (\). $Id: TokenReplacer.java 1331190 2012-04-27 02:41:35Z tfischer $
Field Summary | |
---|---|
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 Summary | |
---|---|
TokenReplacer(ControllerState controllerState)
|
Method Summary | |
---|---|
String |
process(String toProcess)
Resolves all Tokens ${option:optionName} and replaces them with the appropriate value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public TokenReplacer(ControllerState controllerState)
Method Detail |
---|
public String process(String toProcess)
process
in interface StringProcessor
toProcess
- the String to remove tokens from, or null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |