getAttrValue()

Retrieves the value of an attribute of a business object, given the attribute's name or its position in the business object's attribute list.

Syntax

public Object getAttrValue(String name);
 public Object getAttrValue(int position);
 

Parameters

name
Is the name of an attribute.

position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

An Object that contains the value of the specified attribute, in the format defined for the attribute's data type.

Exceptions

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

Notes

The getAttrValue() method returns a java.lang.Object, which you cast to the proper type before assigning to a variable.

See also

See also the description of the getAttrName() method.

Copyright IBM Corp. 1997, 2003