com.sap.mdm.schema
Class CoupledAttributeProperties

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

public class CoupledAttributeProperties
extends AbstractAttributeProperties

Defines a coupled attribute. A coupled attribute mainly contains the primary value, the secondary value and the delimiter.


Field Summary
 
Fields inherited from interface com.sap.mdm.schema.AttributeProperties
COUPLED_TYPE, INVALID_TYPE, NUMERIC_TYPE, TEXT_TYPE
 
Constructor Summary
CoupledAttributeProperties()
          Creates a new instance of CoupledAttributeDescription
CoupledAttributeProperties(AttributeId id)
          Creates an instance of CoupledAttributeProperties.
CoupledAttributeProperties(CoupledAttributeProperties other)
          Copy c'tor.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 String getCode()
          Returns a string identifier for a named repository object.
 String getCoupledDelimiter()
          Returns the string delimiter.
 MeasurementProperties getCoupledMeasurement()
          Returns the secondary measurement properties.
 MultilingualString getCoupledName()
          Returns the coupled name.
 MeasurementProperties getMeasurement()
          Returns the measurement (primary) properties.
 int getType()
          Indicates an attribute type (text, numeric or coupled).
 int hashCode()
           
 boolean isMultiValued()
          Indicates whether the attribute is multi-valued.
 boolean isSymmetric()
           
 void setCoupledDelimiter(String delimiter)
          Sets the string delimiter.
 void setCoupledMeasurement(MeasurementProperties coupledMeasurement)
          Sets the coupled (secondary) measurement properties.
 void setCoupledName(MultilingualString coupledName)
          Sets the coupled (secondary) name.
 void setMeasurement(MeasurementProperties measurement)
          Sets the measurement (primary) properties.
 void setSymmetric(boolean symmetric)
           
 
Methods inherited from class com.sap.mdm.schema.AbstractAttributeProperties
getAlias, getChangeStamp, getDefinition, getId, getImageId, getName, getTableId, 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

CoupledAttributeProperties

public CoupledAttributeProperties()
Creates a new instance of CoupledAttributeDescription


CoupledAttributeProperties

public CoupledAttributeProperties(AttributeId id)
Creates an instance of CoupledAttributeProperties.

Parameters:
id - the attribute Id

CoupledAttributeProperties

public CoupledAttributeProperties(CoupledAttributeProperties other)
Copy c'tor. Creates deep copy of the CoupledAttributeProperties 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

isMultiValued

public boolean isMultiValued()
Description copied from interface: AttributeProperties
Indicates whether the attribute is multi-valued.

Specified by:
isMultiValued in interface AttributeProperties
Overrides:
isMultiValued in class AbstractAttributeProperties

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

getCoupledName

public MultilingualString getCoupledName()
Returns the coupled name.

Returns:
an coupled name

setCoupledName

public void setCoupledName(MultilingualString coupledName)
Sets the coupled (secondary) name.

Parameters:
coupledName - a couple name

getCoupledDelimiter

public String getCoupledDelimiter()
Returns the string delimiter.

Returns:
the string delimiter

setCoupledDelimiter

public void setCoupledDelimiter(String delimiter)
Sets the string delimiter. The default delimiter is " @ ".

Parameters:
delimiter - a string delimiter

isSymmetric

public boolean isSymmetric()

setSymmetric

public void setSymmetric(boolean symmetric)

getMeasurement

public MeasurementProperties getMeasurement()
Returns the measurement (primary) properties.

Returns:
a measurement properties

setMeasurement

public void setMeasurement(MeasurementProperties measurement)
Sets the measurement (primary) properties.

Parameters:
measurement - a primary measurement

getCoupledMeasurement

public MeasurementProperties getCoupledMeasurement()
Returns the secondary measurement properties.

Returns:
a coupled properties

setCoupledMeasurement

public void setCoupledMeasurement(MeasurementProperties coupledMeasurement)
Sets the coupled (secondary) measurement properties.

Parameters:
coupledMeasurement - the coupled measurement

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.