Hi Christian, Christian Junker wrote: First of all XIntrospectionAccess does not support the method .inspect(...), it is css :: beans :: XIntrospection. XIntrospectionAccess is the type of the *returned* object instead. Sorry, I *mistyped* the class name it should have been "XIntrospection.inspect(someObject)" which indeed returnx a XIntrospectionAccess object (that's what I am interested in, needless to say). So "my" reported error occurs with (now typed): import com.sun.star.beans.*; I hope you also know about the queryInterface concept, if not -> have a look at the Developer's Guide. Its' about safe type casting of objects, which I don't see in that one line of code you provide.Yes, I know of these concepts and have studied chapter "5 Advanced UNO" in the Developer's Guide (p. 301 through 239; that's where I got the information about the interface "XIntrospection" and the method "inspect(someObject)". Also studied the online references to the various reflection/introspection classes. My problem is that I am not using C++ but Java and have found no nutshell-programs/hints/faq with reflecting/introspecting UNO components via "Java-UNO". Any working Java-snippet would help me a lot, needless to say. (I am trying to get at the methods and properties of any UNO object at runtime using reflection/introspection via Java.) TIA, ---rony 2005/7/13, Rony G. Flatscher <[EMAIL PROTECTED]>: |
- [api-dev] Java and com.sun.star.beans.XIntrospectionAcce... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.XIntrospe... Christian Junker
- Re: [api-dev] Java and com.sun.star.beans.XIntr... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.X... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.XIntrospe... Stephan Bergmann
- Re: [api-dev] Java and com.sun.star.beans.XIntr... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.XIntr... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.X... Christian Junker
- Re: [api-dev] Java and com.sun.star.bea... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.XIntrospe... Stephan Bergmann
- Re: [api-dev] Java and com.sun.star.beans.XIntrospe... Stephan Bergmann
- Re: [api-dev] Java and com.sun.star.beans.XIntr... Rony G. Flatscher
- Re: [api-dev] Java and com.sun.star.beans.X... Rony G. Flatscher