IisRequired()

Determines whether the specified attribute is required.

Syntax

boolean IisRequired(string attributeName); 

Parameters

attributeName
The name of the attribute that is checked for whether it is required.

Return Values

Returns true if the attribute is required; otherwise, it returns false.

Exceptions

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

// Call the isRequired method
boolean isReq = false;
String busAttribute = "AttributeName";
isReq = exampleBusObj.IisRequired (busAttribute);
if (isReq)
...

Copyright IBM Corp. 2004