com.sap.mdm.ids
Class MeasurementValueId

java.lang.Object
  extended bycom.sap.mdm.ids.MeasurementValueId
All Implemented Interfaces:
Cloneable, Id

public class MeasurementValueId
extends Object
implements Id

An identifier for a measurement value.


Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.ids.Id
Id.Type
 
Field Summary
static int MEASUREMENT_ATTRIBUTE_ID
           
 
Fields inherited from interface com.sap.mdm.ids.Id
EMPTY_ID
 
Constructor Summary
MeasurementValueId(double value, UnitId unitId)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getIdValue()
           
 double getMagnitude()
          Get magnitude of measurement
 String getString()
          Get string representation of ID
 int getType()
          Returns the type of the ID The type of an ID should be identifiable from the string.
 UnitId getUnitId()
          Get unit ID value of measurement
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MEASUREMENT_ATTRIBUTE_ID

public static final int MEASUREMENT_ATTRIBUTE_ID
See Also:
Constant Field Values
Constructor Detail

MeasurementValueId

public MeasurementValueId(double value,
                          UnitId unitId)
Method Detail

getIdValue

public int getIdValue()

getType

public int getType()
Description copied from interface: Id
Returns the type of the ID The type of an ID should be identifiable from the string.

Specified by:
getType in interface Id
Returns:
ID type

getString

public String getString()
Description copied from interface: Id
Get string representation of ID

Specified by:
getString in interface Id
Returns:
ID string representation

getMagnitude

public double getMagnitude()
Get magnitude of measurement

Returns:
double magnitude value

getUnitId

public UnitId getUnitId()
Get unit ID value of measurement

Returns:
unit ID

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
See Also:
Object.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.