com.sap.mdm.schema
Class AbstractAttributeProperties

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

public abstract class AbstractAttributeProperties
extends Object
implements AttributeProperties

An abstract class for common attribute properties.


Field Summary
 
Fields inherited from interface com.sap.mdm.schema.AttributeProperties
COUPLED_TYPE, INVALID_TYPE, NUMERIC_TYPE, TEXT_TYPE
 
Constructor Summary
AbstractAttributeProperties()
          Empty constructor.
AbstractAttributeProperties(AbstractAttributeProperties other)
          Copy c'tor.
AbstractAttributeProperties(AttributeId id)
          Constructor with the specified attribute Id.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 MultilingualString getAlias()
          Returns the alias name for the attribute.
 int getChangeStamp()
          Retrieves the change stamp for the attribute.
 String getCode()
          Returns a string identifier for a named repository object.
 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 hashCode()
           
 boolean isMultiValued()
          Indicates whether the attribute is multi-valued.
 void setAlias(MultilingualString alias)
          Sets the alias name for the attribute.
 void setChaneStamp(int changeStamp)
          Sets the change stamp for the attribute.
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sap.mdm.schema.AttributeProperties
getType
 

Constructor Detail

AbstractAttributeProperties

public AbstractAttributeProperties()
Empty constructor.


AbstractAttributeProperties

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

Parameters:
id - an attribute Id

AbstractAttributeProperties

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

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

getId

public AttributeId getId()
Description copied from interface: AttributeProperties
Get attribute ID

Specified by:
getId in interface AttributeProperties
Returns:
attribute ID

getCode

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

Specified by:
getCode in interface NamedRepositoryItem
Returns:
the code name

setCode

public void setCode(String code)
Description copied from interface: AttributeProperties
Sets the code name.

Specified by:
setCode in interface AttributeProperties
Parameters:
code - a code name

getName

public MultilingualString getName()
Description copied from interface: AttributeProperties
Returns the attribute name.

Specified by:
getName in interface AttributeProperties
Returns:
an attribute name

setName

public void setName(MultilingualString name)
Description copied from interface: AttributeProperties
Sets the attribute name.

Specified by:
setName in interface AttributeProperties
Parameters:
name - an attribute name

getAlias

public MultilingualString getAlias()
Description copied from interface: AttributeProperties
Returns the alias name for the attribute.

Specified by:
getAlias in interface AttributeProperties
Returns:
the alias name

setAlias

public void setAlias(MultilingualString alias)
Description copied from interface: AttributeProperties
Sets the alias name for the attribute.

Specified by:
setAlias in interface AttributeProperties
Parameters:
alias - the alias name

getDefinition

public MultilingualString getDefinition()
Description copied from interface: AttributeProperties
Returns the attribute definition/description.

Specified by:
getDefinition in interface AttributeProperties
Returns:
the definition

setDefinition

public void setDefinition(MultilingualString definition)
Description copied from interface: AttributeProperties
Sets the attribute definition/description

Specified by:
setDefinition in interface AttributeProperties
Parameters:
definition -

isMultiValued

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

Specified by:
isMultiValued in interface AttributeProperties
Returns:
true if multi-valued, otherwise false

setMultiValued

public void setMultiValued(boolean isMultiValued)
Description copied from interface: AttributeProperties
Sets to indicate whether the attribute is multi-valued.

Specified by:
setMultiValued in interface AttributeProperties
Parameters:
isMultiValued - true if multi-valued, otherwise false

getImageId

public RecordId getImageId()
Description copied from interface: AttributeProperties
Returns the image Id used for the attribute.

Specified by:
getImageId in interface AttributeProperties
Returns:
the image Id

setImageId

public void setImageId(RecordId imageId)
Description copied from interface: AttributeProperties
Sets the image Id to use for the attribute.

Specified by:
setImageId in interface AttributeProperties
Parameters:
imageId - the image Id

getTableId

public TableId getTableId()
Description copied from interface: AttributeProperties
Returns the table Id the attribute belongs to.

Specified by:
getTableId in interface AttributeProperties
Returns:
the table Id

setTableId

public void setTableId(TableId tableId)
Description copied from interface: AttributeProperties
Sets the table Id the attribute belongs to.

Specified by:
setTableId in interface AttributeProperties
Parameters:
tableId - the table Id

hashCode

public int hashCode()

equals

public boolean equals(Object obj)

toString

public String toString()

getChangeStamp

public int getChangeStamp()
Description copied from interface: AttributeProperties
Retrieves the change stamp for the attribute.

Specified by:
getChangeStamp in interface AttributeProperties
Returns:
the change stamp

setChaneStamp

public void setChaneStamp(int changeStamp)
Description copied from interface: AttributeProperties
Sets the change stamp for the attribute.

Specified by:
setChaneStamp in interface AttributeProperties
Parameters:
changeStamp - the change stamp

setChangeStamp

public void setChangeStamp(int changeStamp)
Description copied from interface: AttributeProperties
Sets the change stamp for the attribute.

Specified by:
setChangeStamp in interface AttributeProperties
Parameters:
changeStamp - the change stamp

clone

public Object clone()
Specified by:
clone in interface AttributeProperties


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.