org.jfree.report.util
public abstract class PropertyLookupParser extends java.lang.Object implements java.io.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".
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.
|
char |
getMarkerChar()
Returns initial property marker char.
|
char |
getOpeningBraceChar()
Returns the currently defined opening-brace char.
|
protected abstract java.lang.String |
lookupVariable(java.lang.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.
|
java.lang.String |
translateAndLookup(java.lang.String value)
Translates the given string and resolves the embedded property references.
|
protected PropertyLookupParser()
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 java.lang.String translateAndLookup(java.lang.String value)
value
- the raw value,protected abstract java.lang.String lookupVariable(java.lang.String property)
property
- the name of the property to look up.