|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to a read-only set of named text entries.
Inner Class Summary | |
static class |
Catalog.Factory
Use this class to retrieve instances of Catalog which are correctly localized for the given page context. |
Method Summary | |
java.lang.String |
getFormattedText(java.lang.String id,
java.lang.String arg0)
Convenience method, substitutes arg1 into the standard MessageFormat string found in the catalog at the given id. |
java.lang.String |
getFormattedText(java.lang.String id,
java.lang.String arg0,
java.lang.String arg1)
Convenience method, substitutes arg1 into the standard MessageFormat string found in the catalog at the given id. |
java.lang.String |
getText(java.lang.String id)
Returns text from the catalog having the given id. |
Method Detail |
public java.lang.String getText(java.lang.String id)
Returns text from the catalog having the given id. Leading and trailing whitespace is trimmed from the catalog entry.
public java.lang.String getFormattedText(java.lang.String id, java.lang.String arg0)
Convenience method, substitutes arg1 into the standard MessageFormat string found in the catalog at the given id. For example, if the catalog text at the id is 'This is a {0}' and arg0 is 'test', the string returned will be 'This is a test'.
public java.lang.String getFormattedText(java.lang.String id, java.lang.String arg0, java.lang.String arg1)
Convenience method, substitutes arg1 into the standard MessageFormat string found in the catalog at the given id. For example, if the catalog text at the id is 'This is a {0} {1}' and arg0 and arg1 are 'big' and 'test', the string returned will be 'This is a big test'.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |