getBusObjValue()

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

Syntax

public CWConnectorBusObj getBusObjValue(String attrName);
 public CWConnectorBusObj getBusObjValue(int position);
 
public CWConnectorBusObj getBusObjValue(String attrName, 
       int arrayIndex);
 public CWConnectorBusObj getBusObjValue(int position, 
       int arrayIndex);
 

Parameters

attrName
Is the name of an attribute whose value is retrieved.
arrayIndex
Is the integer that specifies the ordinal position of the business object within the business object array (when the attribute contains a business object array).
position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

The business object contained in the specified attribute.

Exceptions

WrongAttributeException
Thrown if the method is called on an attribute that is not a business object.
AttributeNotFoundException
Thrown if the position or name specified is not valid for the definition of this business object.

Notes

The getBusObjValue() method provides two forms:

See also

getAttrName(),, getbooleanValue(),, getdoubleValue(),, getfloatValue(),, getintValue(),, getlongValue(),, getParentBusinessObject(),, getObjectCount(),, getStringValue(),, setBusObjValue()

Copyright IBM Corp. 1997, 2004