com.sap.mdm.schema
Interface AttributeProperties

All Superinterfaces:
Cloneable, NamedRepositoryItem, RepositoryItem
All Known Implementing Classes:
AbstractAttributeProperties

public interface AttributeProperties
extends NamedRepositoryItem

An interface defining common attribute properties. The three kind of attributes are text, numeric and coupled.


Field Summary
static int COUPLED_TYPE
           
static int INVALID_TYPE
           
static int NUMERIC_TYPE
           
static int TEXT_TYPE
           
 
Method Summary
 Object clone()
           
 MultilingualString getAlias()
          Returns the alias name for the attribute.
 int getChangeStamp()
          Retrieves the change stamp for the attribute.
 MultilingualString getDefinition()
          Returns the attribute definition/description.
 AttributeId getId()
          Get attribute ID
 RecordId getImageId()
          Returns the image Id used for the attribute.
 MultilingualString getName()
          Returns the attribute name.
 TableId getTableId()
          Returns the table Id the attribute belongs to.
 int getType()
          Indicates an attribute type (text, numeric or coupled).
 boolean isMultiValued()
          Indicates whether the attribute is multi-valued.
 void setAlias(MultilingualString alias)
          Sets the alias name for the attribute.
 void setChaneStamp(int changeStamp)
          Deprecated. Replaced by setChangeStamp(int)
 void setChangeStamp(int changeStamp)
          Sets the change stamp for the attribute.
 void setCode(String code)
          Sets the code name.
 void setDefinition(MultilingualString definition)
          Sets the attribute definition/description
 void setImageId(RecordId imageId)
          Sets the image Id to use for the attribute.
 void setMultiValued(boolean isMultiValued)
          Sets to indicate whether the attribute is multi-valued.
 void setName(MultilingualString name)
          Sets the attribute name.
 void setTableId(TableId tableId)
          Sets the table Id the attribute belongs to.
 
Methods inherited from interface com.sap.mdm.NamedRepositoryItem
getCode
 

Field Detail

INVALID_TYPE

public static final int INVALID_TYPE
See Also:
Constant Field Values

TEXT_TYPE

public static final int TEXT_TYPE
See Also:
Constant Field Values

NUMERIC_TYPE

public static final int NUMERIC_TYPE
See Also:
Constant Field Values

COUPLED_TYPE

public static final int COUPLED_TYPE
See Also:
Constant Field Values
Method Detail

getType

public int getType()
Indicates an attribute type (text, numeric or coupled).

Returns:
an attribute type

getId

public AttributeId getId()
Get attribute ID

Returns:
attribute ID

getTableId

public TableId getTableId()
Returns the table Id the attribute belongs to.

Returns:
the table Id

setTableId

public void setTableId(TableId tableId)
Sets the table Id the attribute belongs to.

Parameters:
tableId - the table Id

getAlias

public MultilingualString getAlias()
Returns the alias name for the attribute.

Returns:
the alias name

setAlias

public void setAlias(MultilingualString alias)
Sets the alias name for the attribute.

Parameters:
alias - the alias name

getDefinition

public MultilingualString getDefinition()
Returns the attribute definition/description.

Returns:
the definition

setDefinition

public void setDefinition(MultilingualString definition)
Sets the attribute definition/description

Parameters:
definition -

isMultiValued

public boolean isMultiValued()
Indicates whether the attribute is multi-valued.

Returns:
true if multi-valued, otherwise false

setMultiValued

public void setMultiValued(boolean isMultiValued)
Sets to indicate whether the attribute is multi-valued.

Parameters:
isMultiValued - true if multi-valued, otherwise false

getImageId

public RecordId getImageId()
Returns the image Id used for the attribute.

Returns:
the image Id

setImageId

public void setImageId(RecordId imageId)
Sets the image Id to use for the attribute.

Parameters:
imageId - the image Id

getChangeStamp

public int getChangeStamp()
Retrieves the change stamp for the attribute.

Returns:
the change stamp

setChaneStamp

public void setChaneStamp(int changeStamp)
Deprecated. Replaced by setChangeStamp(int)

Sets the change stamp for the attribute.

Parameters:
changeStamp - the change stamp

setChangeStamp

public void setChangeStamp(int changeStamp)
Sets the change stamp for the attribute.

Parameters:
changeStamp - the change stamp

getName

public MultilingualString getName()
Returns the attribute name.

Returns:
an attribute name

setName

public void setName(MultilingualString name)
Sets the attribute name.

Parameters:
name - an attribute name

setCode

public void setCode(String code)
Sets the code name.

Parameters:
code - a code name

clone

public Object clone()


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.