1 26 27 package org.objectweb.openccm.explorer.CosTrading; 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.CosTrading.RegisterPackage.OfferInfo; 33 34 42 public class OffersContext 43 implements Context 44 { 45 46 52 58 64 70 public Entry[] getEntries(Object object) { 71 Offers offers_ = (Offers)object; 72 OfferInfo[] infos = offers_.getOffers(); 73 Entry[] values = new Entry[infos.length]; 74 for (int i=0 ; i<infos.length ; i++) { 75 values[i] = new DefaultEntry("Offer" + i, infos[i]); 76 } 77 return values; 78 } 79 80 } 81 | Popular Tags |