1 26 package org.objectweb.openccm.explorer.Components; 27 28 29 import org.objectweb.openccm.explorer.CORBA.TypageCORBA; 30 import org.objectweb.util.explorer.api.Context; 31 import org.objectweb.util.explorer.api.Entry; 32 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 33 import org.omg.Components.FacetDescription; 34 35 42 public class FacetContext 43 implements Context { 44 45 51 57 63 protected String getName(org.omg.CORBA.Object o) { 64 TypageCORBA tc = new TypageCORBA(o, org.objectweb.openccm.corba.TheORB.getORB()); 65 return tc.getTypeID(); 66 } 67 68 74 77 public Entry[] getEntries(Object object) { 78 FacetDescription facet = (FacetDescription)object; 79 return new Entry[] {new DefaultEntry(getName(facet.facet_ref), facet.facet_ref)}; 80 } 81 82 } 83 | Popular Tags |