exists()

Check for the existence of a business object attribute with a specified name.

Syntax

boolean exists(String attribute)
 

Parameters

attribute
The name of an attribute.

Return values

Returns true if the attribute exists; otherwise, returns false if the attribute does not exist.

Examples

The following example checks whether business object order has an attribute called Notes.

boolean notesAreHere = order.exists("Notes");
 

Copyright IBM Corp. 1997, 2003