public void print(Configuration config) { out.println("Configuration [" + config.getId() + "] - " + config.getNotes()); for (PropertySimple p : config.getSimpleProperties().values()) { print(p, 1); } for (PropertyList p : config.getListProperties().values()) { print(p, 1); } for (PropertyMap p : config.getMapProperties().values()) { print(p, 1); } }
public void applyConfiguration(Configuration configuration) { for(PropertySimple prop : configuration.getSimpleProperties().values()) { SystemSetting systemProp = SystemSetting.getByInternalName(prop.getName()); if (systemProp != null) { String value = prop.getStringValue(); put(systemProp, value); } } }
Map<String, PropertySimple> paramProps = parameters.getSimpleProperties(); SortedSet<EmsOperation> emsOperations = emsBean.getOperations(); EmsOperation operation = null;
Value loaded = currentAttributeState.get(0); for (String pKey : conf.getSimpleProperties().keySet()) { if (pKey.equals("flag")) { loaded.setFlag(conf.getSimpleProperties().get(pKey).getStringValue()); } else if (pKey.equals("code")) { loaded.setCode(conf.getSimpleProperties().get(pKey).getStringValue()); } else if (pKey.equals("type")) { loaded.setType(conf.getSimpleProperties().get(pKey).getStringValue()); for (String pKey : conf.getSimpleProperties().keySet()) { if (pKey.equals("flag")) { valueObject.setFlag(conf.getSimpleProperties().get(pKey).getStringValue()); } else if (pKey.equals("code")) { valueObject.setCode(conf.getSimpleProperties().get(pKey).getStringValue()); } else if (pKey.equals("type")) { valueObject.setType(conf.getSimpleProperties().get(pKey).getStringValue());
Map<String, PropertySimple> newConfigSimpleProperties = newConfig.getSimpleProperties(); Map<String, PropertySimple> currentConfigSimpleProperties = currentConfig.getSimpleProperties();
for (String key : report.getConfiguration().getSimpleProperties().keySet()) { EmsAttribute attribute = bean.getAttribute(key); if (attribute == null) {
for (String key : report.getConfiguration().getSimpleProperties().keySet()) { PropertySimple property = report.getConfiguration().getSimple(key); if (property != null) {