Checks to see whether a CORBA object is an instance of a class that implements a particular interface.
This function is used by PowerBuilder clients connecting to EAServer.
CORBAObject objects
corbaobject._Is_A ( classname )
Argument |
Description |
---|---|
corbaobject |
An object of type CORBAObject that you want to test |
classname |
The interface that will be used for the test |
Boolean. Returns true if the class of the object implements the specified interface and false if it does not.
Before making a call to _Narrow, you can call _Is_A to verify that a CORBA object is an instance of a class that implements the interface to which you want to narrow the object.
The following example checks to see that a CORBA object reference is an instance of a class that implements n_Bank_Account:
CORBAObject my_corbaobj
n_Bank_Account my_account
...
...
if (my_corbaobj._is_a("n_Bank_Account")) then
my_corbaobj._narrow(my_account,"n_Bank_Account")
end if
my_account.withdraw(100.0)