1 26 27 package org.objectweb.openccm.explorer.CosTrading; 28 29 30 31 import org.objectweb.util.explorer.api.Context; 32 import org.objectweb.util.explorer.api.Entry; 33 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 34 import org.omg.CosTrading.RegisterPackage.OfferInfo; 35 36 45 public class OfferInfoContext 46 implements Context 47 { 48 49 55 61 67 73 76 public Entry[] getEntries(Object object) { 77 OfferInfo offerInfo = (OfferInfo)object; 78 Entry[] values = new Entry[1]; 79 values[0] = new DefaultEntry("Related Service", offerInfo.reference); 80 return values; 81 } 82 83 } 84 | Popular Tags |