private Properties whirrConfigurationsToProperties( HadoopHostType.WhirrConfiguration.Configuration configuration){ Properties whirrConfigProps = new Properties(); for(HadoopHostType.WhirrConfiguration.Configuration.Property property: configuration.getPropertyArray()) { whirrConfigProps.put(property.getName(), property.getValue()); } return whirrConfigProps; }
/** * Sets the "configuration" element */ public void setConfiguration(org.apache.airavata.schemas.gfac.HadoopHostType.WhirrConfiguration.Configuration configuration) { synchronized (monitor()) { check_orphaned(); org.apache.airavata.schemas.gfac.HadoopHostType.WhirrConfiguration.Configuration target = null; target = (org.apache.airavata.schemas.gfac.HadoopHostType.WhirrConfiguration.Configuration)get_store().find_element_user(CONFIGURATION$4, 0); if (target == null) { target = (org.apache.airavata.schemas.gfac.HadoopHostType.WhirrConfiguration.Configuration)get_store().add_element_user(CONFIGURATION$4); } target.set(configuration); } }