Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

oracle.jbo.format
Class DefaultPercentageFormatter

java.lang.Object
  extended by java.text.Format
      extended by oracle.jbo.format.Formatter
          extended by oracle.jbo.format.DefaultPercentageFormatter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
PercentageFormatter

Deprecated.

@Deprecated
public class DefaultPercentageFormatter
extends Formatter

Helper class used to format percentage values

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
DefaultPercentageFormatter()
          Deprecated. Constructor
 
Method Summary
protected  void configureFormatter(java.lang.String formatString)
          Deprecated.  
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Deprecated.  
 java.lang.String format(java.lang.String formatString, java.lang.Object rawData)
          Deprecated. format raw data according to the format specified.
 LocaleContext getLocale()
          Deprecated.  
protected  java.text.NumberFormat getPercentageFormatHelper()
          Deprecated.  
 java.lang.Object parse(java.lang.String formatString, java.lang.String parseThisString)
          Deprecated. parse this string according to the format specified and return an object
 java.lang.Object parseObject(java.lang.String formatThisString, java.text.ParsePosition status)
          Deprecated.  
 void setLocale(LocaleContext thisLocale)
          Deprecated. define locale to be used.
 
Methods inherited from class oracle.jbo.format.Formatter
getDefaultFormatString
 
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

DefaultPercentageFormatter

public DefaultPercentageFormatter()
Deprecated. 
Constructor

Method Detail

format

public java.lang.String format(java.lang.String formatString,
                               java.lang.Object rawData)
                        throws FormatErrorException
Deprecated. 
format raw data according to the format specified.

Data is formatted per the 'format string' passed as an argument to this function.

Specified by:
format in class Formatter
Parameters:
formatString - code to define how the raw data should be formatted.
rawData - data which needs to be formatted.
Returns:
formatted string
Throws:
FormatErrorException - if unable to format the data according to the format specified.

parse

public java.lang.Object parse(java.lang.String formatString,
                              java.lang.String parseThisString)
                       throws java.text.ParseException
Deprecated. 
parse this string according to the format specified and return an object

Specified by:
parse in class Formatter
Parameters:
formatString - code to define how the raw data should be parsed.
parseThisString - data which needs to be parsed.
Returns:
object which represents the string parsed.
Throws:
java.text.ParseException - when unable to parse data according to the format specified.

setLocale

public void setLocale(LocaleContext thisLocale)
               throws UnknownLocaleException
Deprecated. 
define locale to be used. Formatter will need to make locale specific formatting if applicable

Specified by:
setLocale in class Formatter
Parameters:
thisLocale - locale to be used
Throws:
UnknownLocaleException - if the formatter does'nt support the specified Locale.

getLocale

public LocaleContext getLocale()
Deprecated. 
Specified by:
getLocale in class Formatter
Returns:
Locale currently in use

parseObject

public java.lang.Object parseObject(java.lang.String formatThisString,
                                    java.text.ParsePosition status)
Deprecated. 
Specified by:
parseObject in class java.text.Format
Parameters:
formatThisString - data which needs to be parsed
status - parse to start from this position
Returns:
object which represents the string parsed

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Deprecated. 
Specified by:
format in class java.text.Format
Parameters:
obj - object which needs to be formatted
toAppendTo - appended formatted string here
pos - additional information about the formatting performed. see java.text.FieldPosition for more information Usage of this API is not entirely thread safe.
Returns:
formatted string

configureFormatter

protected void configureFormatter(java.lang.String formatString)
Deprecated. 

getPercentageFormatHelper

protected java.text.NumberFormat getPercentageFormatHelper()
Deprecated. 

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

Copyright © 1997, 2011, Oracle. All rights reserved.