1 26 27 package org.objectweb.openccm.explorer.CORBA; 28 29 36 public class CORBAAttributes 37 { 38 39 45 46 protected String [] attributesName_ = new String [0]; 47 48 54 60 64 protected boolean exists(String name, org.omg.CORBA.Object obj){ 65 if(obj!=null) { 66 try{ 67 obj.getClass().getMethod(name,null); 68 return true; 69 } catch(NoSuchMethodException e) { 70 ConsoleFactory.getDebugConsole().add(name + " attribute doesn't exist!\n"); 71 return false; 72 } 73 } 74 return false; 75 } 76 77 83 86 public void setAttributesName(String [] attributesName){ 87 if(attributesName != null) 88 attributesName_ = attributesName; 89 } 90 91 } | Popular Tags |