Java Doc for DecimalFormatSymbols.java in  » Internationalization-Localization » icu4j » com » ibm » icu » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.icu.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.text.DecimalFormatSymbols

DecimalFormatSymbols
final public class DecimalFormatSymbols implements Cloneable,Serializable(Code)
This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers. DecimalFormat creates for itself an instance of DecimalFormatSymbols from its locale data. If you need to change any of these symbols, you can get the DecimalFormatSymbols object from your DecimalFormat and modify it.

This is an enhanced version of DecimalFormatSymbols that is based on the standard version in the JDK. New or changed functionality is labeled NEW.
See Also:   java.util.Locale
See Also:   DecimalFormat
author:
   Mark Davis
author:
   Alan Liu




Constructor Summary
public  DecimalFormatSymbols()
     Create a DecimalFormatSymbols object for the default locale.
public  DecimalFormatSymbols(Locale locale)
     Create a DecimalFormatSymbols object for the given locale.
public  DecimalFormatSymbols(ULocale locale)
     Create a DecimalFormatSymbols object for the given locale.

Method Summary
public  Objectclone()
     Standard override.
public  booleanequals(Object obj)
     Override equals.
public  CurrencygetCurrency()
     Returns the currency symbol, for JDK 1.4 compatibility only.
 StringgetCurrencyPattern()
    
public  StringgetCurrencySymbol()
     Return the string denoting the local currency.
public  chargetDecimalSeparator()
     Return the character used for decimal sign.
public  chargetDigit()
     Return the character used for a digit in a pattern.
public  StringgetExponentSeparator()
     NEW Return the string used to separate the mantissa from the exponent.
public  chargetGroupingSeparator()
     Return the character used for thousands separator.
public  StringgetInfinity()
     Return the String used to represent infinity.
public  StringgetInternationalCurrencySymbol()
     Return the international string denoting the local currency.
public  LocalegetLocale()
     Returns the locale for which this object was constructed.
final public  ULocalegetLocale(ULocale.Type type)
     Return the locale that was used to create this object, or null. This may may differ from the locale requested at the time of this object's creation.
public  chargetMinusSign()
     Return the character used to represent minus sign.
public  chargetMonetaryDecimalSeparator()
     Return the monetary decimal separator.
public  chargetMonetaryGroupingSeparator()
     Return the monetary decimal separator.
public  StringgetNaN()
     Return the String used to represent NaN.
public  chargetPadEscape()
     NEW Return the character used to pad numbers out to a specified width.
public  chargetPatternSeparator()
     Return the character used to separate positive and negative subpatterns in a pattern.
public  chargetPerMill()
     Return the character used for mille percent sign.
public  chargetPercent()
     Return the character used for percent sign.
public  chargetPlusSign()
     NEW Return the localized plus sign.
public  chargetSignificantDigit()
     Return the character used to represent a significant digit in a pattern.
public  ULocalegetULocale()
     Returns the locale for which this object was constructed.
public  chargetZeroDigit()
     Return the character used for zero.
public  inthashCode()
    
public  voidsetCurrency(Currency currency)
     ICU does not use the DecimalFormatSymbols for the currency any more.
public  voidsetCurrencySymbol(String currency)
     Set the string denoting the local currency.
public  voidsetDecimalSeparator(char decimalSeparator)
     Set the character used for decimal sign.
public  voidsetDigit(char digit)
     Set the character used for a digit in a pattern.
public  voidsetExponentSeparator(String exp)
     NEW Set the string used to separate the mantissa from the exponent.
public  voidsetGroupingSeparator(char groupingSeparator)
     Set the character used for thousands separator.
public  voidsetInfinity(String infinity)
     Set the String used to represent infinity.
public  voidsetInternationalCurrencySymbol(String currency)
     Set the international string denoting the local currency.
final  voidsetLocale(ULocale valid, ULocale actual)
     Set information about the locales that were used to create this object.
public  voidsetMinusSign(char minusSign)
     Set the character used to represent minus sign.
public  voidsetMonetaryDecimalSeparator(char sep)
     Set the monetary decimal separator.
public  voidsetMonetaryGroupingSeparator(char sep)
     Set the monetary decimal separator.
public  voidsetNaN(String NaN)
     Set the String used to represent NaN.
public  voidsetPadEscape(char c)
     NEW Set the character used to pad numbers out to a specified width.
public  voidsetPatternSeparator(char patternSeparator)
     Set the character used to separate positive and negative subpatterns in a pattern.
public  voidsetPerMill(char perMill)
     Set the character used for mille percent sign.
public  voidsetPercent(char percent)
     Set the character used for percent sign.
public  voidsetPlusSign(char plus)
     NEW Set the localized plus sign.
public  voidsetSignificantDigit(char sigDigit)
     Set the character used to represent a significant digit in a pattern.
public  voidsetZeroDigit(char zeroDigit)
     Set the character used for zero.


Constructor Detail
DecimalFormatSymbols
public DecimalFormatSymbols()(Code)
Create a DecimalFormatSymbols object for the default locale.



DecimalFormatSymbols
public DecimalFormatSymbols(Locale locale)(Code)
Create a DecimalFormatSymbols object for the given locale.
Parameters:
  locale - the locale



DecimalFormatSymbols
public DecimalFormatSymbols(ULocale locale)(Code)
Create a DecimalFormatSymbols object for the given locale.
Parameters:
  locale - the locale




Method Detail
clone
public Object clone()(Code)
Standard override.



equals
public boolean equals(Object obj)(Code)
Override equals.



getCurrency
public Currency getCurrency()(Code)
Returns the currency symbol, for JDK 1.4 compatibility only. ICU clients should use the Currency API directly. the currency used, or null



getCurrencyPattern
String getCurrencyPattern()(Code)
Internal API for NumberFormat String currency pattern string



getCurrencySymbol
public String getCurrencySymbol()(Code)
Return the string denoting the local currency. the local currency String.



getDecimalSeparator
public char getDecimalSeparator()(Code)
Return the character used for decimal sign. Different for French, etc. the decimal character



getDigit
public char getDigit()(Code)
Return the character used for a digit in a pattern. the digit pattern character



getExponentSeparator
public String getExponentSeparator()(Code)
NEW Return the string used to separate the mantissa from the exponent. Examples: "x10^" for 1.23x10^4, "E" for 1.23E4. the localized exponent symbol, used in localized patternsand formatted strings
See Also:   DecimalFormatSymbols.setExponentSeparator



getGroupingSeparator
public char getGroupingSeparator()(Code)
Return the character used for thousands separator. Different for French, etc. the thousands character



getInfinity
public String getInfinity()(Code)
Return the String used to represent infinity. Almost always left unchanged. the Infinity string



getInternationalCurrencySymbol
public String getInternationalCurrencySymbol()(Code)
Return the international string denoting the local currency. the international string denoting the local currency



getLocale
public Locale getLocale()(Code)
Returns the locale for which this object was constructed. the locale for which this object was constructed



getLocale
final public ULocale getLocale(ULocale.Type type)(Code)
Return the locale that was used to create this object, or null. This may may differ from the locale requested at the time of this object's creation. For example, if an object is created for locale en_US_CALIFORNIA, the actual data may be drawn from en (the actual locale), and en_US may be the most specific locale that exists (the valid locale).

Note: This method will be implemented in ICU 3.0; ICU 2.8 contains a partial preview implementation. The * actual locale is returned correctly, but the valid locale is not, in most cases.
Parameters:
  type - type of information requested, either com.ibm.icu.util.ULocale.VALID_LOCALE or com.ibm.icu.util.ULocale.ACTUAL_LOCALE. the information specified by type, or null ifthis object was not constructed from locale data.
See Also:   com.ibm.icu.util.ULocale
See Also:   com.ibm.icu.util.ULocale.VALID_LOCALE
See Also:   com.ibm.icu.util.ULocale.ACTUAL_LOCALE




getMinusSign
public char getMinusSign()(Code)
Return the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format. the minus sign character



getMonetaryDecimalSeparator
public char getMonetaryDecimalSeparator()(Code)
Return the monetary decimal separator. the monetary decimal separator character



getMonetaryGroupingSeparator
public char getMonetaryGroupingSeparator()(Code)
Return the monetary decimal separator. the monetary decimal separator character



getNaN
public String getNaN()(Code)
Return the String used to represent NaN. Almost always left unchanged. the NaN String



getPadEscape
public char getPadEscape()(Code)
NEW Return the character used to pad numbers out to a specified width. This is not the pad character itself; rather, it is the special pattern character preceding the pad character. In the pattern "*_#,##0", '*' is the pad escape, and '_' is the pad character. the character
See Also:   DecimalFormatSymbols.setPadEscape
See Also:   DecimalFormat.getFormatWidth
See Also:   DecimalFormat.getPadPosition
See Also:   DecimalFormat.getPadCharacter



getPatternSeparator
public char getPatternSeparator()(Code)
Return the character used to separate positive and negative subpatterns in a pattern. the pattern separator character



getPerMill
public char getPerMill()(Code)
Return the character used for mille percent sign. Different for Arabic, etc. the mille percent character



getPercent
public char getPercent()(Code)
Return the character used for percent sign. Different for Arabic, etc. the percent character



getPlusSign
public char getPlusSign()(Code)
NEW Return the localized plus sign. the plus sign, used in localized patterns and formattedstrings
See Also:   DecimalFormatSymbols.setPlusSign
See Also:   DecimalFormatSymbols.setMinusSign
See Also:   DecimalFormatSymbols.getMinusSign



getSignificantDigit
public char getSignificantDigit()(Code)
Return the character used to represent a significant digit in a pattern. the significant digit pattern character



getULocale
public ULocale getULocale()(Code)
Returns the locale for which this object was constructed. the locale for which this object was constructed



getZeroDigit
public char getZeroDigit()(Code)
Return the character used for zero. Different for Arabic, etc. the character



hashCode
public int hashCode()(Code)
Override hashCode



setCurrency
public void setCurrency(Currency currency)(Code)
ICU does not use the DecimalFormatSymbols for the currency any more. This API is present for API compatibility only. This also sets the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale, and the international currency symbol attribute to the currency's ISO 4217 currency code.
Parameters:
  currency - the new currency to be used
throws:
  NullPointerException - if currency is null
See Also:   DecimalFormatSymbols.setCurrencySymbol
See Also:   DecimalFormatSymbols.setInternationalCurrencySymbol



setCurrencySymbol
public void setCurrencySymbol(String currency)(Code)
Set the string denoting the local currency.
Parameters:
  currency - the local currency String.



setDecimalSeparator
public void setDecimalSeparator(char decimalSeparator)(Code)
Set the character used for decimal sign. Different for French, etc.
Parameters:
  decimalSeparator - the decimal character



setDigit
public void setDigit(char digit)(Code)
Set the character used for a digit in a pattern.
Parameters:
  digit - the digit pattern character



setExponentSeparator
public void setExponentSeparator(String exp)(Code)
NEW Set the string used to separate the mantissa from the exponent. Examples: "x10^" for 1.23x10^4, "E" for 1.23E4.
Parameters:
  exp - the localized exponent symbol, used in localized patternsand formatted strings
See Also:   DecimalFormatSymbols.getExponentSeparator



setGroupingSeparator
public void setGroupingSeparator(char groupingSeparator)(Code)
Set the character used for thousands separator. Different for French, etc.
Parameters:
  groupingSeparator - the thousands character



setInfinity
public void setInfinity(String infinity)(Code)
Set the String used to represent infinity. Almost always left unchanged.
Parameters:
  infinity - the Infinity String



setInternationalCurrencySymbol
public void setInternationalCurrencySymbol(String currency)(Code)
Set the international string denoting the local currency.
Parameters:
  currency - the international string denoting the local currency.



setLocale
final void setLocale(ULocale valid, ULocale actual)(Code)
Set information about the locales that were used to create this object. If the object was not constructed from locale data, both arguments should be set to null. Otherwise, neither should be null. The actual locale must be at the same level or less specific than the valid locale. This method is intended for use by factories or other entities that create objects of this class.
Parameters:
  valid - the most specific locale containing any resourcedata, or null
Parameters:
  actual - the locale containing data used to construct thisobject, or null
See Also:   com.ibm.icu.util.ULocale
See Also:   com.ibm.icu.util.ULocale.VALID_LOCALE
See Also:   com.ibm.icu.util.ULocale.ACTUAL_LOCALE



setMinusSign
public void setMinusSign(char minusSign)(Code)
Set the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.
Parameters:
  minusSign - the minus sign character



setMonetaryDecimalSeparator
public void setMonetaryDecimalSeparator(char sep)(Code)
Set the monetary decimal separator.
Parameters:
  sep - the monetary decimal separator character



setMonetaryGroupingSeparator
public void setMonetaryGroupingSeparator(char sep)(Code)
Set the monetary decimal separator.
Parameters:
  sep - the monetary decimal separator character



setNaN
public void setNaN(String NaN)(Code)
Set the String used to represent NaN. Almost always left unchanged.
Parameters:
  NaN - the NaN String



setPadEscape
public void setPadEscape(char c)(Code)
NEW Set the character used to pad numbers out to a specified width. This is not the pad character itself; rather, it is the special pattern character preceding the pad character. In the pattern "*_#,##0", '*' is the pad escape, and '_' is the pad character.
See Also:   DecimalFormatSymbols.getPadEscape
See Also:   DecimalFormat.setFormatWidth
See Also:   DecimalFormat.setPadPosition
See Also:   DecimalFormat.setPadCharacter



setPatternSeparator
public void setPatternSeparator(char patternSeparator)(Code)
Set the character used to separate positive and negative subpatterns in a pattern.
Parameters:
  patternSeparator - the pattern separator character



setPerMill
public void setPerMill(char perMill)(Code)
Set the character used for mille percent sign. Different for Arabic, etc.
Parameters:
  perMill - the mille percent character



setPercent
public void setPercent(char percent)(Code)
Set the character used for percent sign. Different for Arabic, etc.
Parameters:
  percent - the percent character



setPlusSign
public void setPlusSign(char plus)(Code)
NEW Set the localized plus sign.
Parameters:
  plus - the plus sign, used in localized patterns and formattedstrings
See Also:   DecimalFormatSymbols.getPlusSign
See Also:   DecimalFormatSymbols.setMinusSign
See Also:   DecimalFormatSymbols.getMinusSign



setSignificantDigit
public void setSignificantDigit(char sigDigit)(Code)
Set the character used to represent a significant digit in a pattern.
Parameters:
  sigDigit - the significant digit pattern character



setZeroDigit
public void setZeroDigit(char zeroDigit)(Code)
Set the character used for zero.
Parameters:
  zeroDigit - the zero character.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.