getAttribute()

Retrieves the attribute by its name or by its specified position in the business object definition's attribute list.

Syntax

public BusObjAttr getAttribute(String attrName);
 public BusObjAttr getAttribute(int pos);
 

Parameters

attrName
Is the name of the attribute to retrieve from the business object definition's attribute list.
pos
Is an integer that specifies the ordinal position of the attribute in the business object definition's attribute list.

Return values

The attribute (BusObjAttr) object for the specified attribute in the business object definition.

Exceptions

BusObjNoSuchAttrException
Thrown if the specified attribute does not exist or the position within the attribute list is not valid.

Notes

The getAttribute() method retrieves an attribute from the business object definition's attribute list. It returns this attribute as an attribute object (BusObjAttr). You can use methods of the BusObjAttr class to obtain information about the attribute.

See also

getAttributeIndex(), getAttributeList()

Copyright IBM Corp. 1997, 2004