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:
- The first form expects the name or position of an attribute
that is an object type. It returns the business object at the
specified attribute. It assumes that the attribute has single
cardinality.
- The second form expects either the name or position of an
attribute and an index into a business object array. It returns the
child business object at the specified index position in the
business object array. It assumes that the attribute has multiple
cardinality.
See also
getAttrName(),,
getbooleanValue(),,
getdoubleValue(),,
getfloatValue(),,
getintValue(),,
getlongValue(),,
getParentBusinessObject(),,
getObjectCount(),,
getStringValue(),,
setBusObjValue()
