Examples of NameValue


Examples of org.apache.airavata.client.stub.interpretor.NameValue

  }
  private String runExperimentGeneral(Workflow workflowObj, List<WorkflowInput> inputs, ExperimentAdvanceOptions options, EventDataListener listener) throws AiravataAPIInvocationException {
    try {
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WorkflowInput input : inputs) {
        NameValue nameValue = new NameValue();
        nameValue.setName(input.getName());
        nameValue.setValue(String.valueOf(input.getValue()==null?input.getDefaultValue():input.getValue()));
        inputValues.add(nameValue);
      }
      String workflowString = XMLUtil.xmlElementToString(workflowObj.toXML());
//      List<WSComponentPort> ports = getWSComponentPortInputs(workflowObj);
//      for (WorkflowInput input : inputs) {
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

      }
      NameValue[] inputNameVals = new NameValue[inputSize];
      int index = 0;
      for (NodeImpl input : inputs) {
        if (input instanceof InputNode) {
          inputNameVals[index] = new NameValue();
          String name = input.getName();
          inputNameVals[index].setName(name);
          inputNameVals[index].setValue(properties.getProperty(name));
          ((InputNode) input).setDefaultValue(properties
              .getProperty(name));
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

          port.setValue(input.getValue());
        }
      }
      List<NameValue> inputValues=new ArrayList<NameValue>();
      for (WSComponentPort port : ports) {
        NameValue nameValue = new NameValue();
        nameValue.setName(port.getName());
        if (port.getValue()==null){
          nameValue.setValue(port.getDefaultValue());
        }else{
          nameValue.setValue(port.getValue().toString());
        }
        inputValues.add(nameValue);
      }
      workflow=workflowString;
      String topic=workflowObj.getName()+"_"+UUID.randomUUID();
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

    List<NameValue> parameters=new ArrayList<NameValue>();
    Document parameterDocument = XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));
    org.w3c.dom.NodeList childNodes = parameterDocument.getDocumentElement().getChildNodes();
    for(int i=0;i<childNodes.getLength();i++){
      org.w3c.dom.Node parameterNode = childNodes.item(i);
      NameValue pair = new NameValue();
      pair.setName(parameterNode.getLocalName());
      pair.setValue(parameterNode.getTextContent());
      parameters.add(pair);
    }
    return parameters;
  }
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

                try {

                    WorkflowInterpretorStub stub = new WorkflowInterpretorStub(engine.getConfiguration()
                            .getWorkflowInterpreterURL().toString());
                    NameValue[] configurations = new NameValue[6];
                    configurations[0] = new NameValue();
                    configurations[0].setName(HeaderConstants.HEADER_ELEMENT_GFAC);
                    configurations[0].setValue(engine.getConfiguration().getGFacURL().toString());
                    configurations[1] = new NameValue();
                    configurations[1].setName(HeaderConstants.HEADER_ELEMENT_REGISTRY);
                    if (null == engine.getConfiguration().getRegistryURL()) {
                        configurations[1].setValue(XBayaConstants.REGISTRY_URL.toString());
                    } else {
                        configurations[1].setValue(engine.getConfiguration().getRegistryURL().toString());
                    }
                    configurations[2] = new NameValue();
                    configurations[2].setName(HeaderConstants.HEADER_ELEMENT_PROXYSERVER);
                    configurations[2].setValue(engine.getConfiguration().getMyProxyServer());

                    configurations[3] = new NameValue();
                    configurations[3].setName(HeaderConstants.HEADER_ELEMENT_BROKER);
                    configurations[3].setValue(engine.getConfiguration().getBrokerURL().toString());

                    configurations[4] = new NameValue();
                    configurations[4].setName(HeaderConstants.HEADER_ELEMENT_MSGBOX);
                    configurations[4].setValue(engine.getConfiguration().getMessageBoxURL().toString());

                    configurations[5] = new NameValue();
                    configurations[5].setName(HeaderConstants.HEADER_ELEMENT_DSC);
                    configurations[5].setValue(engine.getConfiguration().getDSCURL().toString());

                    NameValue[] inputNameVals = new NameValue[inputNodes.size()];
                    for (int i = 0; i < inputNodes.size(); i++) {
                        inputNameVals[i] = new NameValue();
                        InputNode inputNode = inputNodes.get(i);
                        String id = inputNode.getID();
                        String value = inputNode.getDefaultValue().toString();
                        inputNameVals[i].setName(id);
                        inputNameVals[i].setValue(value);
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

    List<NameValue> parameters=new ArrayList<NameValue>();
    Document parameterDocument = XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));
    org.w3c.dom.NodeList childNodes = parameterDocument.getDocumentElement().getChildNodes();
    for(int i=0;i<childNodes.getLength();i++){
      org.w3c.dom.Node parameterNode = childNodes.item(i);
      NameValue pair = new NameValue();
      pair.setName(parameterNode.getLocalName());
      pair.setValue(parameterNode.getTextContent());
      parameters.add(pair);
    }
    return parameters;
  }
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

      }
      NameValue[] inputNameVals = new NameValue[inputSize];
      int index = 0;
      for (NodeImpl input : inputs) {
        if (input instanceof InputNode) {
          inputNameVals[index] = new NameValue();
          String name = input.getName();
          inputNameVals[index].setName(name);
          inputNameVals[index].setValue(properties.getProperty(name));
          ((InputNode) input).setDefaultValue(properties
              .getProperty(name));
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

          port.setValue(input.getValue());
        }
      }
      List<NameValue> inputValues=new ArrayList<NameValue>();
      for (WSComponentPort port : ports) {
        NameValue nameValue = new NameValue();
        nameValue.setName(port.getName());
        if (port.getValue()==null){
          nameValue.setValue(port.getDefaultValue());
        }else{
          nameValue.setValue(port.getValue().toString());
        }
        inputValues.add(nameValue);
      }
      workflow=workflowString;
      String topic=workflowObj.getName()+"_"+UUID.randomUUID();
View Full Code Here

Examples of org.apache.airavata.xbaya.interpretor.NameValue

                try {

                    WorkflowInterpretorStub stub = new WorkflowInterpretorStub(engine.getConfiguration()
                            .getWorkflowInterpreterURL().toString());
                    NameValue[] configurations = new NameValue[6];
                    configurations[0] = new NameValue();
                    configurations[0].setName(HeaderConstants.HEADER_ELEMENT_GFAC);
                    configurations[0].setValue(engine.getConfiguration().getGFacURL().toString());
                    configurations[1] = new NameValue();
                    configurations[1].setName(HeaderConstants.HEADER_ELEMENT_REGISTRY);
                    if (null == engine.getConfiguration().getRegistryURL()) {
                        configurations[1].setValue(XBayaConstants.REGISTRY_URL.toString());
                    } else {
                        configurations[1].setValue(engine.getConfiguration().getRegistryURL().toString());
                    }
                    configurations[2] = new NameValue();
                    configurations[2].setName(HeaderConstants.HEADER_ELEMENT_PROXYSERVER);
                    configurations[2].setValue(engine.getConfiguration().getMyProxyServer());

                    configurations[3] = new NameValue();
                    configurations[3].setName(HeaderConstants.HEADER_ELEMENT_BROKER);
                    configurations[3].setValue(engine.getConfiguration().getBrokerURL().toString());

                    configurations[4] = new NameValue();
                    configurations[4].setName(HeaderConstants.HEADER_ELEMENT_MSGBOX);
                    configurations[4].setValue(engine.getConfiguration().getMessageBoxURL().toString());

                    configurations[5] = new NameValue();
                    configurations[5].setName(HeaderConstants.HEADER_ELEMENT_DSC);
                    configurations[5].setValue(engine.getConfiguration().getDSCURL().toString());

                    NameValue[] inputNameVals = new NameValue[inputNodes.size()];
                    for (int i = 0; i < inputNodes.size(); i++) {
                        inputNameVals[i] = new NameValue();
                        InputNode inputNode = inputNodes.get(i);
                        String id = inputNode.getID();
                        String value = inputNode.getDefaultValue().toString();
                        inputNameVals[i].setName(id);
                        inputNameVals[i].setValue(value);
View Full Code Here

Examples of org.apache.uima.aae.deployment.impl.NameValue

   */
  public class EnvVariableLabelProvider extends LabelProvider implements ITableLabelProvider {
    public String getColumnText(Object element, int columnIndex)  {
      String result = null;
      if (element != null) {
        NameValue var = (NameValue) element;
        switch (columnIndex) {
          case 0: // variable
            result = var.getName();
            break;
          case 1: // value
            result = var.getValue();
            break;
        }
      }
      return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.