/** * Adds a config element to the results of the lookup replacing any config * element already present with the same name * * @param configElement * The config element to add */ public void putConfigElement(ConfigElement configElement) { this.configElements.put(configElement.getName(), configElement); } }
/** * Adds a config element to the results of the lookup replacing any config * element already present with the same name * * @param configElement * The config element to add */ public void putConfigElement(ConfigElement configElement) { this.configElements.put(configElement.getName(), configElement); } }
/** * Adds a config element to the results of the lookup replacing any config * element already present with the same name * * @param configElement * The config element to add */ public void putConfigElement(ConfigElement configElement) { this.configElements.put(configElement.getName(), configElement); } }
public List<ConfigElement> getChildren(String name) { List<ConfigElement> result = new LinkedList<ConfigElement>(); if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { result.add(ce); } } } return Collections.unmodifiableList(result); }
public ConfigElement getChild(String name) { ConfigElement child = null; if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { child = ce; break; } } } return child; }
public List<ConfigElement> getChildren(String name) { List<ConfigElement> result = new LinkedList<ConfigElement>(); if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { result.add(ce); } } } return Collections.unmodifiableList(result); }
public ConfigElement getChild(String name) { ConfigElement child = null; if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { child = ce; break; } } } return child; }
public List<ConfigElement> getChildren(String name) { List<ConfigElement> result = new LinkedList<ConfigElement>(); if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { result.add(ce); } } } return Collections.unmodifiableList(result); }
public ConfigElement getChild(String name) { ConfigElement child = null; if (hasChildren()) { for (ConfigElement ce : this.children) { if (ce.getName().equals(name)) { child = ce; break; } } } return child; }
@SuppressWarnings("unchecked") public Map<String, List<ConfigElement>> getChildrenMap() { Map<String, List<ConfigElement>> map = new LinkedHashMap<String, List<ConfigElement>>(); if (hasChildren()) { for (ConfigElement ce : this.children) { String name = ce.getName(); if (map.containsKey(name)) { List list = map.get(name); list.add(ce); } else { List<ConfigElement> list = new ArrayList<ConfigElement>(); list.add(ce); map.put(name, list); } } } return map; }
@SuppressWarnings("unchecked") public Map<String, List<ConfigElement>> getChildrenMap() { Map<String, List<ConfigElement>> map = new LinkedHashMap<String, List<ConfigElement>>(); if (hasChildren()) { for (ConfigElement ce : this.children) { String name = ce.getName(); if (map.containsKey(name)) { List list = map.get(name); list.add(ce); } else { List<ConfigElement> list = new ArrayList<ConfigElement>(); list.add(ce); map.put(name, list); } } } return map; }
@SuppressWarnings("unchecked") public Map<String, List<ConfigElement>> getChildrenMap() { Map<String, List<ConfigElement>> map = new LinkedHashMap<String, List<ConfigElement>>(); if (hasChildren()) { for (ConfigElement ce : this.children) { String name = ce.getName(); if (map.containsKey(name)) { List list = map.get(name); list.add(ce); } else { List<ConfigElement> list = new ArrayList<ConfigElement>(); list.add(ce); map.put(name, list); } } } return map; }
ConfigElement existing = globalConfig.getConfigElement(ce.getName()); if (existing != null)
String name = newConfigElement.getName(); ConfigElement existingConfigElement = results.getConfigElements().get(name); if (existingConfigElement != null)
String name = newConfigElement.getName(); ConfigElement existingConfigElement = results.getConfigElements().get(name); if (existingConfigElement != null)
String name = newConfigElement.getName(); ConfigElement existingConfigElement = results.getConfigElements().get(name); if (existingConfigElement != null)
logger.warn("Ignoring prefered standard doesn't found, choose : " + configLanguages.getName());
logger.warn("Ignoring prefered standard doesn't found, choose : " + configLanguages.getName());
if ( userElem.getName().equalsIgnoreCase( "user"))
assertEquals("child two name", "child-two", childrenElement.getChildren().get(0).getName()); assertEquals("child two value", "child two value", childrenElement.getChildren().get(0).getValue()); assertEquals("child three name", "child-three", childrenElement.getChildren().get(1).getName()); assertEquals("child three value", "child three value", childrenElement.getChildren().get(1).getValue());