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 33 34 41 public class QueriesContext 42 implements Context 43 { 44 45 51 57 63 69 72 public Entry[] getEntries(Object object) { 73 Queries theQueries = (Queries)object; 74 Query[] queries = theQueries.getQueries(); 75 Entry[] values = new Entry[queries.length]; 76 for (int i=0 ; i < queries.length ; i++) { 77 values[i] = new DefaultEntry(queries[i].getQueryLabel(), queries[i]); 78 } 79 return values; 80 } 81 82 } 83 | Popular Tags |