IgetBooleanAttribute()

Retrieves a boolean value of an attribute.

Syntax

boolean IgetBooleanAttribute(string attributeName);

Parameters

attributeName
The name of the boolean attribute whose value is retrieved.

Return Values

The boolean value of the 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 of the boolean date type.

IAttributeBlankException
Thrown when the attribute has a blank value.

Example

// Call the boolean method
String booleanAttribute = "MyBooleanAttribute";
boolean value = exampleBusObj.IgetBooleanAttribute(booleanAttribute);

Copyright IBM Corp. 2004