|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.valuetypes.format.MdmNumberFormatInfo
Number format definition
| Field Summary |
| Fields inherited from interface com.sap.mdm.valuetypes.format.MdmFormatInfo |
CURRANCY_FORMAT_TYPE, DATE_TIME_FORMAT_TYPE, MEASUREMENT_FORMAT_TYPE, NUMBER_FORMAT_TYPE |
| Constructor Summary | |
MdmNumberFormatInfo()
Empty constructor |
|
MdmNumberFormatInfo(Locale locale)
Constructor |
|
MdmNumberFormatInfo(MdmNumberFormatInfo other)
Copy constructor |
|
| Method Summary | |
char |
getDecimalSeparator()
Returns character of decimal separator If not specified, the default value is depends on Locale (ex.: '.' for English, ',' for Germany) |
String |
getFormatPattern()
Returns format pattern |
int |
getFractionType()
Returns the fraction type. |
char |
getGroupingSeparator()
Returns character of grouping separator (ex: 1,234.5) If not specified, the default value is depends on Locale (ex.: ',' for English, '.' for Germany) |
int |
getGroupingSize()
Returns size of grouping If not specified, the default value is 0 |
int |
getIntegerDigits()
Returns number of integer digits. |
Locale |
getLocale()
Returns the locale |
int |
getMaxFractionDigits()
Returns the maximum number of digits in the fractional part. |
int |
getMinFractionDigits()
Returns the minimum number of digits in the fractional part. |
int |
getType()
Returns type of format info |
boolean |
isAllowENotation()
Indicated if the number should be formatted as scientific ('E') notation. |
boolean |
isTreatAsDouble()
Indicates if the number should be treated as double number If not specified, the default value is false |
void |
setAllowENotation(boolean allowENotation)
Specify if the number should be formatted as scientific ('E') notation. |
void |
setDecimalSeparator(char decimalSeparator)
Sets character of decimal separator If not specified, the default value is depends on Locale (ex.: '.' for English, ',' for Germany) |
void |
setFormatPattern(String formatPattern)
Sets format pattern. |
void |
setFractionType(int fractionType)
Sets the fraction type. |
void |
setGroupingSeparator(char groupingSeparator)
Sets character of grouping separator (ex: 1,234.5) If not specified, the default value is depends on Locale (ex.: ',' for English, '.' for Germany) |
void |
setGroupingSize(int groupingSize)
Sets size of grouping If not specified, the default value is 0 |
void |
setIntegerDigits(int integerDigits)
Sets number of integer digits. |
void |
setLocale(Locale locale)
Sets the locale |
void |
setMaxFractionDigits(int maxFractionDigits)
Sets the maximum number of digits in the fractional part. |
void |
setMinFractionDigits(int minFractionDigits)
Sets the minimum number of digits in the fractional part. |
void |
setTreatAsDouble(boolean treatAsDouble)
Specifies if the number should be treated as double number If not specified, the default value is false |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MdmNumberFormatInfo()
public MdmNumberFormatInfo(Locale locale)
locale - public MdmNumberFormatInfo(MdmNumberFormatInfo other)
| Method Detail |
public int getType()
MdmFormatInfo
getType in interface MdmFormatInfopublic boolean isAllowENotation()
true for 'E' notation, false otherwisepublic void setAllowENotation(boolean allowENotation)
false
allowENotation - true if number should be formatted in 'E' notationpublic char getDecimalSeparator()
public void setDecimalSeparator(char decimalSeparator)
decimalSeparator - the decimal separator to setpublic int getFractionType()
UnitProperties.FRACTIONS_NONE
for possible valuespublic void setFractionType(int fractionType)
UnitProperties.FRACTIONS_NONE
fractionType - the fraction typefor possible valuespublic char getGroupingSeparator()
public void setGroupingSeparator(char groupingSeparator)
groupingSeparator - the grouping separatorpublic int getGroupingSize()
public void setGroupingSize(int groupingSize)
groupingSize - the grouping sizepublic Locale getLocale()
public void setLocale(Locale locale)
locale - the locale to setpublic boolean isTreatAsDouble()
false
true if the number should be treated as double, false otherwisepublic void setTreatAsDouble(boolean treatAsDouble)
false
treatAsDouble - true if the number should be treated as double,
false otherwisepublic int getIntegerDigits()
public void setIntegerDigits(int integerDigits)
integerDigits - the number of integer digitspublic int getMaxFractionDigits()
public void setMaxFractionDigits(int maxFractionDigits)
maxFractionDigits - the maximum number of digits in the fractional part.public int getMinFractionDigits()
public void setMinFractionDigits(int minFractionDigits)
minFractionDigits - the minimum number of digits in the fractional part.public String getFormatPattern()
public void setFormatPattern(String formatPattern)
formatPattern - the format pattern to setexplaining structure of number format pattern
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.