public abstract class PropertyLookupParser extends Object implements Serializable
${property-name}
where 'property-name is the name
of the property. If this construct is found within the text, it is replaced with the value returned from a call to
"lookupVariable".Modifier and Type | Field and Description |
---|---|
static int |
ESCAPE_MODE_ALL |
static int |
ESCAPE_MODE_NONE |
static int |
ESCAPE_MODE_STRICT |
Modifier | Constructor and Description |
---|---|
protected |
PropertyLookupParser()
Initializes the parser to the default format of "${..}".
|
Modifier and Type | Method and Description |
---|---|
char |
getClosingBraceChar()
Returns the currently defined closed-brace char.
|
char |
getEscapeChar()
Returns the escape char.
|
int |
getEscapeMode() |
char |
getMarkerChar()
Returns initial property marker char.
|
char |
getOpeningBraceChar()
Returns the currently defined opening-brace char.
|
protected void |
handleVariableLookup(StringBuilder result,
DataRow parameters,
String columnName) |
protected abstract String |
lookupVariable(String property)
Looks up the property with the given name.
|
protected char |
postProcessCharacter(char c) |
void |
setClosingBraceChar(char closingBraceChar)
Defines the closing brace character.
|
void |
setEscapeChar(char escapeChar)
Defines the escape char.
|
void |
setEscapeMode(int escapeMode) |
void |
setMarkerChar(char markerChar)
Defines initial property marker char.
|
void |
setOpeningBraceChar(char openingBraceChar)
Defines the opening brace character.
|
String |
translateAndLookup(String value)
Translates the given string and resolves the embedded property references.
|
String |
translateAndLookup(String value,
DataRow parameters)
Translates the given string and resolves the embedded property references.
|
public static final int ESCAPE_MODE_NONE
public static final int ESCAPE_MODE_ALL
public static final int ESCAPE_MODE_STRICT
protected PropertyLookupParser()
public int getEscapeMode()
public void setEscapeMode(int escapeMode)
public char getClosingBraceChar()
public void setClosingBraceChar(char closingBraceChar)
closingBraceChar
- the closed-brace character.public char getEscapeChar()
public void setEscapeChar(char escapeChar)
escapeChar
- the escape charpublic char getOpeningBraceChar()
public void setOpeningBraceChar(char openingBraceChar)
openingBraceChar
- the opening-brace character.public char getMarkerChar()
public void setMarkerChar(char markerChar)
markerChar
- the initial property marker character.public String translateAndLookup(String value)
value
- the raw value,public String translateAndLookup(String value, DataRow parameters)
value
- the raw value,protected char postProcessCharacter(char c)
protected void handleVariableLookup(StringBuilder result, DataRow parameters, String columnName)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.