com.sap.mdm.valuetypes.format
Class MdmCurrencyFormatInfo

java.lang.Object
  extended bycom.sap.mdm.valuetypes.format.MdmNumberFormatInfo
      extended bycom.sap.mdm.valuetypes.format.MdmCurrencyFormatInfo
All Implemented Interfaces:
MdmFormatInfo

public class MdmCurrencyFormatInfo
extends MdmNumberFormatInfo

Currency 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
MdmCurrencyFormatInfo()
          Empty constructor
MdmCurrencyFormatInfo(Locale locale)
          Constructor
MdmCurrencyFormatInfo(MdmNumberFormatInfo other)
          Copy constructor
 
Method Summary
 String getCurrencySymbol()
          Returns the currency symbol.
 int getType()
          Returns type of format info
 boolean isPlaceAsSuffix()
          Indicates the position of the currency symbol.
 void setCurrencySymbol(String currencySymbol)
          Sets the currency symbol.
 void setPlaceAsSuffix(boolean placeAsSuffix)
          Specify the position of the currency symbol.
 
Methods inherited from class com.sap.mdm.valuetypes.format.MdmNumberFormatInfo
getDecimalSeparator, getFormatPattern, getFractionType, getGroupingSeparator, getGroupingSize, getIntegerDigits, getLocale, getMaxFractionDigits, getMinFractionDigits, isAllowENotation, isTreatAsDouble, setAllowENotation, setDecimalSeparator, setFormatPattern, setFractionType, setGroupingSeparator, setGroupingSize, setIntegerDigits, setLocale, setMaxFractionDigits, setMinFractionDigits, setTreatAsDouble
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdmCurrencyFormatInfo

public MdmCurrencyFormatInfo()
Empty constructor


MdmCurrencyFormatInfo

public MdmCurrencyFormatInfo(Locale locale)
Constructor

Parameters:
locale -

MdmCurrencyFormatInfo

public MdmCurrencyFormatInfo(MdmNumberFormatInfo other)
Copy constructor

Method Detail

getType

public int getType()
Description copied from interface: MdmFormatInfo
Returns type of format info

Specified by:
getType in interface MdmFormatInfo
Overrides:
getType in class MdmNumberFormatInfo

getCurrencySymbol

public String getCurrencySymbol()
Returns the currency symbol. The default value is empty string

Returns:
the currency symbol

setCurrencySymbol

public void setCurrencySymbol(String currencySymbol)
Sets the currency symbol. If not specified, the default value is empty string

Parameters:
currencySymbol - the currency symbol to set

isPlaceAsSuffix

public boolean isPlaceAsSuffix()
Indicates the position of the currency symbol. By default the currency symbol is placed after the currency value - as suffix

Returns:
true if currency symbol should be placed as suffix.

setPlaceAsSuffix

public void setPlaceAsSuffix(boolean placeAsSuffix)
Specify the position of the currency symbol. If not specified, by default the currency symbol is placed after the currency value.

Parameters:
placeAsSuffix - true if currency symbol should be placed as suffix.


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.