|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.schema.UnitProperties
This class represents a MDM unit, such as an inch, a milligram, etc.
| Field Summary | |
static int |
FRACTIONS_ALL
|
static int |
FRACTIONS_NONE
|
static int |
FRACTIONS_OF_TWO
|
| Constructor Summary | |
UnitProperties(int id,
String name,
int sortPos,
String suffix,
int isPrefix,
String synonyms,
int dimensionId,
double factor,
double preoffset,
int logToUniversal,
int fractionType,
int unitSystem,
int counterPartId)
Constructs with the specified parameters. |
|
| Method Summary | |
boolean |
equals(Object obj)
|
String |
getCode()
Returns a string identifier for a named repository object. |
DimensionId |
getDimensionId()
Returns the dimension Id the unit belongs to. |
double |
getFactor()
|
int |
getFractionType()
Returns the fraction type. |
UnitId |
getId()
Get unit ID |
String |
getName()
|
String |
getName(Locale locale)
Returns the unit name. |
double |
getPreoffset()
|
String |
getSuffix()
Returns the suffix. |
String[] |
getSynonyms()
Returns the synonyms. |
int |
hashCode()
|
boolean |
isLogToUniversal()
|
boolean |
isPrefix()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FRACTIONS_NONE
public static final int FRACTIONS_OF_TWO
public static final int FRACTIONS_ALL
| Constructor Detail |
public UnitProperties(int id,
String name,
int sortPos,
String suffix,
int isPrefix,
String synonyms,
int dimensionId,
double factor,
double preoffset,
int logToUniversal,
int fractionType,
int unitSystem,
int counterPartId)
id - the unit Idname - the unit namesortPos - the sort positionsuffix - the unit suffixisPrefix - whether the unit is a prefixsynonyms - a synonym for the unitdimensionId - the dimension the unit belongs tofactor - preoffset - logToUniversal - fractionType - | Method Detail |
public String getCode()
NamedRepositoryItem
getCode in interface NamedRepositoryItempublic UnitId getId()
public String getName(Locale locale)
locale - the locale.
public String getSuffix()
public String[] getSynonyms()
public DimensionId getDimensionId()
public int getFractionType()
for constants of availavle fraction typespublic int hashCode()
public boolean equals(Object obj)
public String toString()
public boolean isPrefix()
public boolean isLogToUniversal()
public double getPreoffset()
public double getFactor()
public String getName()
|
|||||||||||
| 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.