Examples of InputParameterType


Examples of org.apache.airavata.schemas.gfac.InputParameterType

                    "admin", "admin", config);

            ServiceDescription serv = new ServiceDescription();
            serv.getType().setName("SimpleEcho");

            InputParameterType input = InputParameterType.Factory.newInstance();
            input.setParameterName("echo_input");
            List<InputParameterType> inputList = new ArrayList<InputParameterType>();
            inputList.add(input);
            InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList
                    .size()]);
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.InputParameterType

        ServiceDescription serv1 = new ServiceDescription();
        serv1.getType().setName("MathService");

        List<InputParameterType> inputList = new ArrayList<InputParameterType>();
        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("echo_input");
        input.setParameterType(StringParameterType.Factory.newInstance());
        inputList.add(input);
        InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList
                .size()]);

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.InputParameterType

        ServiceDescription serv1 = new ServiceDescription();
        serv1.getType().setName("MathService");

        List<InputParameterType> inputList = new ArrayList<InputParameterType>();
        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("echo_input");
        input.setParameterType(StringParameterType.Factory.newInstance());
        inputList.add(input);
        InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList
                .size()]);

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

      }

      ArrayList<ParamObject> inputparams = op.getInputParms();
      for (int y = 0; y < inputparams.size(); y++) {
        ParamObject param = (ParamObject) inputparams.get(y);
        InputParameterType inputParm = inputMap.get(param.getName());
        if (inputParm == null) {
          inputParm = method.addNewInputParameter();
        }
        inputParm.setParameterName(param.getName());
        inputParm.setParameterDescription(param.getDesc());
        InputDataType.Enum type = InputDataType.Enum.forString(param.getType());
        inputParm.setParameterType(type);
      }

      ArrayList<ParamObject> outputparams = op.getOutputParms();
      for (int y = 0; y < outputparams.size(); y++) {
        ParamObject param = (ParamObject) outputparams.get(y);
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

      }

      ArrayList<ParamObject> inputparams = op.getInputParms();
      for (int y = 0; y < inputparams.size(); y++) {
        ParamObject param = (ParamObject) inputparams.get(y);
        InputParameterType inputParm = inputMap.get(param.getName());
        if (inputParm == null) {
          inputParm = method.addNewInputParameter();
        }
        inputParm.setParameterName(param.getName());
        inputParm.setParameterDescription(param.getDesc());
        InputDataType.Enum type = InputDataType.Enum.forString(param.getType());
        inputParm.setParameterType(type);
      }

      ArrayList<ParamObject> outputparams = op.getOutputParms();
      for (int y = 0; y < outputparams.size(); y++) {
        ParamObject param = (ParamObject) outputparams.get(y);
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

      }

      ArrayList<ParamObject> inputparams = op.getInputParms();
      for (int y = 0; y < inputparams.size(); y++) {
        ParamObject param = (ParamObject) inputparams.get(y);
        InputParameterType inputParm = inputMap.get(param.getName());
        if (inputParm == null) {
          inputParm = method.addNewInputParameter();
        }
        inputParm.setParameterName(param.getName());
        inputParm.setParameterDescription(param.getDesc());
        InputDataType.Enum type = InputDataType.Enum.forString(param
            .getType());
        inputParm.setParameterType(type);
      }

      ArrayList<ParamObject> outputparams = op.getOutputParms();
      for (int y = 0; y < outputparams.size(); y++) {
        ParamObject param = (ParamObject) outputparams.get(y);
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

            .isSetUseLEADNameListPropertiesFile());

    InputParameterType[] inputparams = method.getInputParameterArray();
    for (int index = 0; index < inputparams.length; index++) {

      InputParameterType inputParameterType = inputparams[index];
      methodBean.addInputParms(new ParamObject(inputParameterType
          .getParameterName(), inputParameterType.getParameterType()
          .toString(), index, inputParameterType
          .getParameterDescription()));

    }

    OutputParameterType[] outparams = method.getOutputParameterArray();
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

                    InputParameterType[] inputParams = methods[j]
                        .getInputParameterArray();

                    for (int k = 0; k < inputParams.length; ++k)
                    {
                        InputParameterType param = inputParams[k];
                        InParamObj obj = new InParamObj();
                        obj.setName(param.getParameterName());
                        obj.setDescription(param.getParameterDescription());
                        obj.setDataType(param.getParameterType().toString());
                        XmlObject input = param.getAnyMetadata();
                        if(input != null){
                            obj.setMetadata(input.getDomNode());   
                        }
                    
                        if (param.getDisplayAs() != null)
                        {
                            obj.setDisplayAs(param.getDisplayAs().toString());
                        }
                        params.add(obj);
                    }
                    break;
                }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

                    }

                    InputParameterType[] inputs = method.getInputParameterArray();
                    if(inputs != null && inputs.length > 0)
                    {
                        InputParameterType input = inputs[i];
                        if(input.getParameterName() == null)
                        {
                            throw new GFacSchemaException("Every input parameter must have a parameter name");
                        }

                        if(input.getParameterType() == null)
                        {
                            throw new GFacSchemaException("Every input parameter must have a valid data type");
                        }

                        ParameterValueType[] values = input.getParameterValueArray();

                        if(values != null && values.length > 0)
                        {
                            for(int k = 0; k < values.length; ++k)
                            {
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.InputParameterType

        // parse the input and populate input table
        while (childs.hasNext()) {
            Object obj = childs.next();
            if (obj instanceof XmlElement) {
                XmlElement ele = (XmlElement) obj;
                InputParameterType paramMetadata = findInputParameter(ele.getName());

                if (paramMetadata != null) {
                    handleParamElement(ele, paramMetadata);
                } else {
                    throw new GFacSchemaException("Service Map does not define a parameter called  "
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.