/** * Sets ith "applicationEnvironment" element */ public void setApplicationEnvironmentArray(int i, org.apache.airavata.schemas.gfac.NameValuePairType applicationEnvironment) { synchronized (monitor()) { check_orphaned(); org.apache.airavata.schemas.gfac.NameValuePairType target = null; target = (org.apache.airavata.schemas.gfac.NameValuePairType)get_store().find_element_user(APPLICATIONENVIRONMENT$8, i); if (target == null) { throw new IndexOutOfBoundsException(); } target.set(applicationEnvironment); } }
int i = 0; NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment(); nameValuePairType.setName(key); nameValuePairType.setValue(environmentVariables.get(key)); appEnviVariablesArray[i] = nameValuePairType; i++; int i = 0; NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment(); nameValuePairType.setName(key); nameValuePairType.setValue(envVariables.get(key)); appEnviVariablesArray[i] = nameValuePairType; i++;