com.sap.mdm.schema
Class NumericAttributeProperties

java.lang.Object
  extended bycom.sap.mdm.schema.AbstractAttributeProperties
      extended bycom.sap.mdm.schema.NumericAttributeProperties
All Implemented Interfaces:
AttributeProperties, Cloneable, NamedRepositoryItem, RepositoryItem

public class NumericAttributeProperties
extends AbstractAttributeProperties

Defines a numeric attribute. A numeric value specify a value and an attribute rating.


Field Summary
 
Fields inherited from interface com.sap.mdm.schema.AttributeProperties
COUPLED_TYPE, INVALID_TYPE, NUMERIC_TYPE, TEXT_TYPE
 
Constructor Summary
NumericAttributeProperties()
          Empty constructor.
NumericAttributeProperties(AttributeId id)
          Constructor with the specified attribute Id.
NumericAttributeProperties(NumericAttributeProperties other)
          Copy c'tor.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 String getCode()
          Returns a string identifier for a named repository object.
 MeasurementProperties getMeasurement()
          Returns the measurement properties
 byte getSupportedRatings()
          Returns the attribute rating the attribute support.
 int getType()
          Indicates an attribute type (text, numeric or coupled).
 int hashCode()
           
 void setMeasurement(MeasurementProperties measurement)
          Sets the measurement.
 void setSupportedRatings(byte supportedRatings)
          Sets the attribute rating.
 boolean supportsRating(byte rating)
          Returns whether the specified attribute rating is supported by this numeric attribute.
 
Methods inherited from class com.sap.mdm.schema.AbstractAttributeProperties
getAlias, getChangeStamp, getDefinition, getId, getImageId, getName, getTableId, isMultiValued, setAlias, setChaneStamp, setChangeStamp, setCode, setDefinition, setImageId, setMultiValued, setName, setTableId, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericAttributeProperties

public NumericAttributeProperties()
Empty constructor.


NumericAttributeProperties

public NumericAttributeProperties(AttributeId id)
Constructor with the specified attribute Id.

Parameters:
id - an attribute Id

NumericAttributeProperties

public NumericAttributeProperties(NumericAttributeProperties other)
Copy c'tor. Creates deep copy of NumericAttributeProperties object.

Parameters:
other - Object to copy
Since:
7.2
Method Detail

getType

public int getType()
Description copied from interface: AttributeProperties
Indicates an attribute type (text, numeric or coupled).

Returns:
an attribute type

getSupportedRatings

public byte getSupportedRatings()
Returns the attribute rating the attribute support.

Returns:
a bitwise of the attribute ratings

setSupportedRatings

public void setSupportedRatings(byte supportedRatings)
Sets the attribute rating. The attribute rating is a bitwise of the ratings.

Parameters:
supportedRatings - attribute ratings

supportsRating

public boolean supportsRating(byte rating)
Returns whether the specified attribute rating is supported by this numeric attribute.

Parameters:
rating - an attribute rating
Returns:
true if the rating is supported, otherwise false

getMeasurement

public MeasurementProperties getMeasurement()
Returns the measurement properties

Returns:
a measurement properties

setMeasurement

public void setMeasurement(MeasurementProperties measurement)
Sets the measurement.

Parameters:
measurement - a measurement

getCode

public String getCode()
Description copied from interface: NamedRepositoryItem
Returns a string identifier for a named repository object.

Specified by:
getCode in interface NamedRepositoryItem
Overrides:
getCode in class AbstractAttributeProperties

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractAttributeProperties

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractAttributeProperties

clone

public Object clone()
Specified by:
clone in interface AttributeProperties
Overrides:
clone in class AbstractAttributeProperties


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.