public interface NumberFormatSpecifier extends FormatSpecifier
The following features are supported:
Modifier and Type | Method and Description |
---|---|
NumberFormatSpecifier |
copyInstance() |
java.lang.String |
format(double dValue,
java.util.Locale lo)
Deprecated.
|
java.lang.String |
format(double dValue,
com.ibm.icu.util.ULocale lo)
Formats a value using the internally defined format specifier rules
|
java.lang.String |
format(java.lang.Number number,
com.ibm.icu.util.ULocale lo)
Returns a formatted string representation of specified number.
|
int |
getFractionDigits()
Returns the value of the 'Fraction Digits' attribute.
|
double |
getMultiplier()
Returns the value of the 'Multiplier' attribute.
|
java.lang.String |
getPrefix()
Returns the value of the 'Prefix' attribute.
|
java.lang.String |
getSuffix()
Returns the value of the 'Suffix' attribute.
|
boolean |
isSetFractionDigits()
Returns whether the value of the '
Fraction Digits ' attribute is set. |
boolean |
isSetMultiplier()
Returns whether the value of the '
Multiplier ' attribute is set. |
void |
setFractionDigits(int value)
Sets the value of the '
Fraction Digits ' attribute. |
void |
setMultiplier(double value)
Sets the value of the '
Multiplier ' attribute. |
void |
setPrefix(java.lang.String value)
Sets the value of the '
Prefix ' attribute. |
void |
setSuffix(java.lang.String value)
Sets the value of the '
Suffix ' attribute. |
void |
unsetFractionDigits()
Unsets the value of the '
Fraction Digits ' attribute. |
void |
unsetMultiplier()
Unsets the value of the '
Multiplier ' attribute. |
java.lang.String getPrefix()
setPrefix(String)
,
AttributePackage.getNumberFormatSpecifier_Prefix()
void setPrefix(java.lang.String value)
Prefix
' attribute. value
- the new value of the 'Prefix' attribute.getPrefix()
java.lang.String getSuffix()
setSuffix(String)
,
AttributePackage.getNumberFormatSpecifier_Suffix()
void setSuffix(java.lang.String value)
Suffix
' attribute. value
- the new value of the 'Suffix' attribute.getSuffix()
double getMultiplier()
isSetMultiplier()
,
unsetMultiplier()
,
setMultiplier(double)
,
AttributePackage.getNumberFormatSpecifier_Multiplier()
void setMultiplier(double value)
Multiplier
' attribute.
value
- the new value of the 'Multiplier' attribute.isSetMultiplier()
,
unsetMultiplier()
,
getMultiplier()
void unsetMultiplier()
Multiplier
' attribute.
isSetMultiplier()
,
getMultiplier()
,
setMultiplier(double)
boolean isSetMultiplier()
Multiplier
' attribute is set.
unsetMultiplier()
,
getMultiplier()
,
setMultiplier(double)
int getFractionDigits()
isSetFractionDigits()
,
unsetFractionDigits()
,
setFractionDigits(int)
,
AttributePackage.getNumberFormatSpecifier_FractionDigits()
void setFractionDigits(int value)
Fraction Digits
' attribute.
value
- the new value of the 'Fraction Digits' attribute.isSetFractionDigits()
,
unsetFractionDigits()
,
getFractionDigits()
void unsetFractionDigits()
Fraction Digits
' attribute.
boolean isSetFractionDigits()
Fraction Digits
' attribute is set.
unsetFractionDigits()
,
getFractionDigits()
,
setFractionDigits(int)
java.lang.String format(double dValue, java.util.Locale lo)
dValue
- java.lang.String format(double dValue, com.ibm.icu.util.ULocale lo)
dValue
- java.lang.String format(java.lang.Number number, com.ibm.icu.util.ULocale lo)
number
- lo
- NumberFormatSpecifier copyInstance()
copyInstance
in interface FormatSpecifier
copyInstance
in interface IChartObject
Copyright © 2005-2008 Actuate Corp. All rights reserved.