org.jfree.report.util
public abstract class PropertyLookupParser extends Object implements Serializable
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".
Constructor Summary | |
---|---|
protected | PropertyLookupParser()
Initializes the parser to the default format of "${..}". |
Method Summary | |
---|---|
char | getClosingBraceChar()
Returns the currently defined closed-brace char.
|
char | getEscapeChar()
Returns the escape char. |
char | getMarkerChar()
Returns initial property marker char. |
char | getOpeningBraceChar()
Returns the currently defined opening-brace char.
|
protected abstract String | lookupVariable(String property)
Looks up the property with the given name.
|
void | setClosingBraceChar(char closingBraceChar)
Defines the closing brace character. |
void | setEscapeChar(char escapeChar)
Defines the escape char.
|
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.
|
Returns: the closed-brace char.
Returns: the escape char.
Returns: the initial property marker character.
Returns: the opening-brace char.
Parameters: property the name of the property to look up.
Returns: the translated value.
Parameters: closingBraceChar the closed-brace character.
Parameters: escapeChar the escape char
Parameters: markerChar the initial property marker character.
Parameters: openingBraceChar the opening-brace character.
Parameters: value the raw value,
Returns: the fully translated string.