com.sap.mdm.valuetypes.format
Class MdmMeasurementFormatInfo

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

public class MdmMeasurementFormatInfo
extends MdmNumberFormatInfo

Measurement 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
MdmMeasurementFormatInfo()
          Empty constructor
MdmMeasurementFormatInfo(Locale locale)
          Constructor
MdmMeasurementFormatInfo(MdmNumberFormatInfo other)
          Copy constructor
 
Method Summary
 DimensionId getDimensionId()
          Returns ID of dimension
 int getType()
          Returns type of format info
 UnitId getUnitIdFrom()
          Returns the ID of source UOM
 UnitId getUnitIdTo()
          Returns the ID of destination UOM
 boolean isUseUomSuffix()
          Indicates what should be used for UOM presentation: suffix or full name of UOM
 void setDimensionId(DimensionId dimensionId)
          Sets the dimension ID
 void setUnitIdFrom(UnitId unitIdFrom)
          Sets the ID of source UOM
 void setUnitIdTo(UnitId unitIdTo)
          Sets the ID of destination UOM
 void setUseUomSuffix(boolean useUomSuffix)
          Specify what should be used for representing UOM: suffix or full name of UOM
 
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

MdmMeasurementFormatInfo

public MdmMeasurementFormatInfo()
Empty constructor


MdmMeasurementFormatInfo

public MdmMeasurementFormatInfo(Locale locale)
Constructor

Parameters:
locale -

MdmMeasurementFormatInfo

public MdmMeasurementFormatInfo(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

isUseUomSuffix

public boolean isUseUomSuffix()
Indicates what should be used for UOM presentation: suffix or full name of UOM

Returns:
true if suffix of UOM will be used, false otherwise. the full name of UOM will be used

setUseUomSuffix

public void setUseUomSuffix(boolean useUomSuffix)
Specify what should be used for representing UOM: suffix or full name of UOM

Parameters:
useUomSuffix - the asSuffix to set

getDimensionId

public DimensionId getDimensionId()
Returns ID of dimension

Returns:
the dimension ID

setDimensionId

public void setDimensionId(DimensionId dimensionId)
Sets the dimension ID

Parameters:
dimensionId - the dimension ID to set

getUnitIdFrom

public UnitId getUnitIdFrom()
Returns the ID of source UOM

Returns:
the source UOM ID

setUnitIdFrom

public void setUnitIdFrom(UnitId unitIdFrom)
Sets the ID of source UOM

Parameters:
unitIdFrom - the ID of source UOM to set

getUnitIdTo

public UnitId getUnitIdTo()
Returns the ID of destination UOM

Returns:
the destination UOM ID

setUnitIdTo

public void setUnitIdTo(UnitId unitIdTo)
Sets the ID of destination UOM

Parameters:
unitIdTo - the ID of destination UOM to set


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.