|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.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".
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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PropertyLookupParser()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |