IgetBusinessObjectAttribute()

Retrieves the value of an attribute of single cardinality.

Syntax

IBusinessObject IgetBusinessObjectAttribute(string attributeName);

Parameters

attributeName
The name of the single-cardinality attribute whose value is retrieved.

Return Values

An IBusinessObject object that contains the value of the single-cardinality attribute.

Exceptions

IAttributeNotSetException
Thrown when the attribute value is not set.

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

IInvalidAttributeTypeException
Thrown when the attribute is not a single-cardinality attribute (it is of some other date type).

IAttributeBlankException
Thrown when the attribute has a blank value.

Example

// Call the get business object method and get the attribute
String busObjAttribute = "Customer";
IBusinessObject aBusObj =
     exampleBusObj.IgetBusinessObjectAttribute(busObjAttribute);

Copyright IBM Corp. 2004