getAttribute()

Retrieves the value of an attribute, given the attribute's name.

Syntax

public Object getAttribute(String attrName);

Parameters

attrName
Is the name of the attribute in the business object definition.

Return values

An Object that contains the attribute value.

Exceptions

CxObjectNoSuchAttributeException
Thrown if the name specified is not valid for the definition of this business object.

Notes

This method differs from getAttrValue() in that getAttribute() can do a deep retrieve of attribute values. For example, if a Customer business object contains an Address business object, getAttribute() can retrieve an AddressId from the Address subobject, at the fifth position in the container: Address[4].AddressId.

Copyright IBM Corp. 1997, 2004