|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.util.PropertyLookupParser
public abstract class PropertyLookupParser
The property lookup parser is used to resolve embedded references to properties within strings.
The default format of the property specification is:${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".
Field Summary | |
---|---|
static int |
ESCAPE_MODE_ALL
|
static int |
ESCAPE_MODE_NONE
|
static int |
ESCAPE_MODE_STRICT
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ESCAPE_MODE_NONE
public static final int ESCAPE_MODE_ALL
public static final int ESCAPE_MODE_STRICT
Method Detail |
---|
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,
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |