1 26 package org.objectweb.openccm.explorer.CORBA; 27 28 29 import org.objectweb.util.explorer.api.Context; 30 import org.objectweb.util.explorer.api.Entry; 31 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 32 import org.omg.CORBA.Container ; 33 import org.omg.CORBA.Contained ; 34 35 42 public class ContainerContext 43 implements Context 44 { 45 46 52 58 64 70 73 public Entry[] getEntries(Object object) { 74 Container container_ = (Container )object; 75 Contained [] objects = container_.contents(org.omg.CORBA.DefinitionKind.dk_all, true); 76 Entry[] values = new Entry[objects.length]; 77 for (int i = 0; i < objects.length; i++) 78 values[i] = new DefaultEntry(objects[i].name(), objects[i]); 79 return values; 80 } 81 82 } 83 | Popular Tags |