com.sap.mdm.schema
Class MeasurementProperties

java.lang.Object
  extended bycom.sap.mdm.schema.MeasurementProperties

public final class MeasurementProperties
extends Object

Defines a measurement. A measurement contains the dimension (for example, length) and the unit (for example, inches). It also include properties for formating a measurement value.


Constructor Summary
MeasurementProperties(DimensionId dimensionId, UnitId defaultUnitId, byte decimalPlaces, boolean displayedAsFraction)
          Constructs with the specified parameters.
 
Method Summary
 boolean equals(Object obj)
           
 byte getDecimalPlaces()
          Returns the decimal places for the measurement.
 UnitId getDefaultUnitId()
          Returns the default unit.
 DimensionId getDimensionId()
          Returns the dimension for the measurement
 int hashCode()
           
 boolean isDisplayedAsFraction()
          Indicates whether the measurement value is display as fraction.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementProperties

public MeasurementProperties(DimensionId dimensionId,
                             UnitId defaultUnitId,
                             byte decimalPlaces,
                             boolean displayedAsFraction)
Constructs with the specified parameters.

Parameters:
dimensionId - the dimension Id
defaultUnitId - the default unit Id
decimalPlaces - the number of decimal places
displayedAsFraction - whether to display in fraction form
Method Detail

getDimensionId

public DimensionId getDimensionId()
Returns the dimension for the measurement

Returns:
a dimension

getDefaultUnitId

public UnitId getDefaultUnitId()
Returns the default unit.

Returns:
a unit

getDecimalPlaces

public byte getDecimalPlaces()
Returns the decimal places for the measurement.

Returns:
a decimal places

isDisplayedAsFraction

public boolean isDisplayedAsFraction()
Indicates whether the measurement value is display as fraction.

Returns:
true for display as fraction, otherwise false

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()


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.