test if method exists

2007-02-15 Thread Russ Michaels
I am working with a JAVA web service, and I get back an array of objects with methods to access the data. One of these methods is getExtendedFields() which will only exist if there are any extended fields. So I need to be able to test if this method actually exists before I bother trying to

RE: test if method exists

2007-02-15 Thread Ben Nadel
To: CF-Talk Subject: test if method exists I am working with a JAVA web service, and I get back an array of objects with methods to access the data. One of these methods is getExtendedFields() which will only exist if there are any extended fields. So I need to be able to test if this method actually

Re: test if method exists

2007-02-15 Thread srinivas ganta
Need to write another function to see the Object Data,if it is private. we can't see the private class properites in Java. Srinivas On 2/15/07, Russ Michaels [EMAIL PROTECTED] wrote: I am working with a JAVA web service, and I get back an array of objects with methods to access the data.

Re: test if method exists

2007-02-15 Thread Jake Pilgrim
How about this? Straight out of the CF manual: h3IsCustomFunction Example/h3 cfscript function realUDF() { return 1; } /cfscript cfset X = 1 !--- Example that fails existence test --- cfif IsDefined(Foo) AND IsCustomFunction(Foo) Foo is a UDF.br /cfif !--- Example that passes existence test