|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.text.Format
oracle.jbo.format.Formatter
oracle.jbo.format.DefaultCurrencyFormatter
public class DefaultCurrencyFormatter
Formatter class which understands how to format currency values.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.text.Format |
---|
java.text.Format.Field |
Constructor Summary | |
---|---|
DefaultCurrencyFormatter() Constructor |
Method Summary | |
---|---|
java.lang.StringBuffer |
format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos) |
java.lang.String |
format(java.lang.String formatString, java.lang.Object rawData) format raw data according to the format specified. |
java.lang.String |
getDefaultFormatString() |
LocaleContext |
getLocale() |
java.lang.Object |
parse(java.lang.String formatString, java.lang.String parseThisString) parse this string according to the format specified and return an object |
java.lang.Object |
parseObject(java.lang.String parseThisString, java.text.ParsePosition status) |
void |
setLocale(LocaleContext thisLocale) define locale to be used. |
Methods inherited from class java.text.Format |
---|
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCurrencyFormatter()
Method Detail |
---|
public java.lang.String format(java.lang.String formatString, java.lang.Object rawData) throws FormatErrorException
This formatter ignores the format string passed to it.
format
in class Formatter
formatString
- code to define how the raw data should be formatted.rawData
- data which needs to be formatted.FormatErrorException
- if unable to format the data according to the format specified.public java.lang.Object parse(java.lang.String formatString, java.lang.String parseThisString) throws java.text.ParseException
parse
in class Formatter
formatString
- code to define how the raw data should be parsed.parseThisString
- data which needs to be parsed.java.text.ParseException
- when unable to parse data according to the format specified.public void setLocale(LocaleContext thisLocale) throws UnknownLocaleException
setLocale
in class Formatter
thisLocale
- locale to be usedUnknownLocaleException
- if the formatter does'nt support the specified Locale.public LocaleContext getLocale()
getLocale
in class Formatter
public java.lang.Object parseObject(java.lang.String parseThisString, java.text.ParsePosition status)
parseObject
in class java.text.Format
parseThisString
- data which needs to be parsedstatus
- parse to start from this positionpublic java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.Format
obj
- object which needs to be formattedtoAppendTo
- appended formatted string herepos
- additional information about the formatting performed. see java.text.FieldPosition for more informationpublic java.lang.String getDefaultFormatString()
getDefaultFormatString
in class Formatter
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |