//we can test the objects
public void test(Object o){
if(o!=null){
XServiceInfo xServiceInfo = null;
XTypeProvider xTypeProvider = null;
XPropertySet xPS = null;
System.out.println("the test class: "+o.toString()+"----"+o.getClass()+"------------");
System.out.println("----------------------ServiceTest----------------------");
xServiceInfo = ( XServiceInfo ) UnoRuntime.queryInterface( XServiceInfo.class, o );
if(xServiceInfo != null){
String[] s = xServiceInfo.getSupportedServiceNames();
for(int i=0;i<s.length;i++)
System.out.println(s[i]);
}
System.out.println("----------------------InterfaceTest--------------------");
xTypeProvider = ( XTypeProvider ) UnoRuntime.queryInterface( XTypeProvider.class, o );
if(xServiceInfo != null){
Type[] t = xTypeProvider.getTypes();
for(int i=0;i<t.length;i++)
System.out.println(t[i].getTypeName());
}
System.out.println("-----------------------PropertyTest------------------------");
xPS = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, o);