/** * Return a fresh index map. */ public static IndexMap createIndexMap() { IndexMap ret = new IndexMap(); if(DEBUG) addCollection(ret); return ret; }
/** * Create a standalone df. */ public DirectoryFacilitatorService() { this.components = new IndexMap(); }
/** * Create a standalone df. */ public DirectoryFacilitatorService() { this.components = new IndexMap(); }
/** * Create a standalone df. */ public DirectoryFacilitatorService(IServiceProvider provider, Map properties) { super(provider.getId(), IDF.class, properties); this.provider = provider; this.components = new IndexMap(); }
/** * Add an entry to the report. * @param stack The path to the element to which the entry applies. * @param message The problem description. */ public void addEntry(Tuple stack, String message) { if(entries==null) // Use index map to keep insertion order for elements. this.entries = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); if(!entries.getCollection(stack).contains(message)) entries.put(stack, message); }
/** * Add a parameter. * @param param The parameter. */ public void addParameter(MParameter param) { if(parameters==null) parameters = new IndexMap<String, MParameter>(); parameters.put(param.getName(), param); }
/** * Add a property. * @param prop The property. */ public void addProperty(MProperty prop) { if(properties==null) properties = new IndexMap<String, MProperty>(); properties.put(prop.getName(), prop); }
/** * Add a parameter mapping. * @param name The parameter name. * @param exp The expression. * @param iexp The index expression, when setting a entry of an array parameter. */ public void addParameterMapping(String name, UnparsedExpression exp, UnparsedExpression iexp) { if(parametermappings == null) // parametermappings = new LinkedHashMap<String, Tuple2<UnparsedExpression,UnparsedExpression>>(); parametermappings = new IndexMap<String, Tuple2<UnparsedExpression, UnparsedExpression>>(); parametermappings.put(name, new Tuple2<UnparsedExpression, UnparsedExpression>(exp, iexp)); }
/** * Gets the semantic message event properties. * * @return The event properties. */ protected IndexMap<String, MProperty> getMEventProperties() { return getMEvent().getProperties() != null? getMEvent().getProperties() : new IndexMap<String, MProperty>(); }
/** * Get the parameters. * @return The parameters. */ public IndexMap<String, MParameter> getAllParameters(Map<String, Object> params, IModelInfo model, ClassLoader cl) { IndexMap<String, MParameter> ret = new IndexMap<String, MParameter>(parameters); if(clazz!=null) { Class<?> task = clazz.getType(cl); try { Method m = task.getMethod("getExtraParameters", new Class[]{Map.class}); ParameterMetaInfo[] ps = (ParameterMetaInfo[])m.invoke(null, new Object[]{params}); for(ParameterMetaInfo pmi: ps) { MParameter mp = new MParameter(pmi.getDirection(), pmi.getClazz(), pmi.getName(), null); // has no initial value ret.put(mp.getName(), mp); } } catch(Exception e) { // ignore } } return ret; }
this.vevent = vmsgevent; parametercache = new IndexMap<String, MProperty>();
tablepanel.add(confbox, gc); paramcche = new IndexMap(); paramtable = new JTable(pmodel); gc = new GridBagConstraints();
MultiCollection report = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); user.put(SEQUENCE_EDGES, new HashMap<String, MSequenceEdge>());
MultiCollection<Tuple, String> report = new MultiCollection<Tuple, String>(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); user.put(SEQUENCE_EDGES, new HashMap<String, MSequenceEdge>());
MultiCollection<Tuple, String> entries = new MultiCollection<Tuple, String>(new IndexMap().getAsMap(), LinkedHashSet.class); context.put(CONTEXT_ENTRIES, entries); Map<String, String> externals = new HashMap<String, String>();
MultiCollection report = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); ModelInfo mi = (ModelInfo)reader.read(manager, handler, rinfo.getInputStream(), classloader, user);
MultiCollection entries = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); ModelInfo mi = null; Object handle = null;