Examples of ParameterType


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

                // todo how to handle Enum
                if (getIOStringList()[0].equals(defaultTableModel.getValueAt(i, 0))) {
                    InputParameterType parameter = InputParameterType.Factory.newInstance();
                    parameter.setParameterName(parameterName);
                    parameter.setParameterDescription(parameterDescription);
                    ParameterType parameterType = parameter.addNewParameterType();
                    parameterType.setType(DataType.Enum.forString(paramType));
                    parameterType.setName(paramType);
                    inputParameters.add(parameter);

                } else {
                    OutputParameterType parameter = OutputParameterType.Factory.newInstance();
                    parameter.setParameterName(parameterName);
                    parameter.setParameterDescription(parameterDescription);
                    ParameterType parameterType = parameter.addNewParameterType();
                    parameterType.setType(DataType.Enum.forString(paramType));
                    parameterType.setName(paramType);
                    outputParameters.add(parameter);
                }
            }
        }
        getServiceDescriptionType().setInputParametersArray(inputParameters.toArray(new InputParameterType[] {}));
View Full Code Here

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

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();


        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("echo_input");
        ParameterType parameterType = input.addNewParameterType();
        parameterType.setType(DataType.STRING);
        parameterType.setName("String");

        OutputParameterType output = OutputParameterType.Factory.newInstance();
        output.setParameterName("echo_output");
        ParameterType parameterType1 = output.addNewParameterType();
        parameterType1.setType(DataType.STRING);
        parameterType1.setName("String");

        inputList.add(input);
        outputList.add(output);

        InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList.size()]);
View Full Code Here

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

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();


        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("input");
        ParameterType parameterType = input.addNewParameterType();
        parameterType.setType(DataType.URI);
        parameterType.setName("URI");

        OutputParameterType output = OutputParameterType.Factory.newInstance();
        output.setParameterName("output");
        ParameterType parameterType1 = output.addNewParameterType();
        parameterType1.setType(DataType.URI);
        parameterType1.setName("URI");
       
        OutputParameterType output1 = OutputParameterType.Factory.newInstance();
        output1.setParameterName("stdout");
        ParameterType parameterType2 = output1.addNewParameterType();
        parameterType2.setType(DataType.STD_OUT);
        parameterType2.setName("StdOut");
       
        OutputParameterType output2 = OutputParameterType.Factory.newInstance();
        output2.setParameterName("stderr");
        ParameterType parameterType3 = output2.addNewParameterType();
        parameterType3.setType(DataType.STD_ERR);
        parameterType3.setName("StdErr");

        inputList.add(input);
        outputList.add(output);
        outputList.add(output1);
        outputList.add(output2);
View Full Code Here

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

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();


        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("input");
        ParameterType parameterType = input.addNewParameterType();
        parameterType.setType(DataType.URI);
        parameterType.setName("URI");

        OutputParameterType output = OutputParameterType.Factory.newInstance();
        output.setParameterName("output");
        ParameterType parameterType1 = output.addNewParameterType();
        parameterType1.setType(DataType.URI);
        parameterType1.setName("URI");
       
        OutputParameterType output1 = OutputParameterType.Factory.newInstance();
        output1.setParameterName("stdout");
        ParameterType parameterType2 = output1.addNewParameterType();
        parameterType2.setType(DataType.STD_OUT);
        parameterType2.setName("StdOut");
       
        OutputParameterType output2 = OutputParameterType.Factory.newInstance();
        output2.setParameterName("stderr");
        ParameterType parameterType3 = output2.addNewParameterType();
        parameterType3.setType(DataType.STD_ERR);
        parameterType3.setName("StdErr");

        inputList.add(input);
        outputList.add(output);
        outputList.add(output1);
        outputList.add(output2);
View Full Code Here

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

        List<OutputParameterType> outputList = new ArrayList<OutputParameterType>();


        InputParameterType input = InputParameterType.Factory.newInstance();
        input.setParameterName("echo_input");
        ParameterType parameterType = input.addNewParameterType();
        parameterType.setType(DataType.STRING);
        parameterType.setName("String");

        OutputParameterType output = OutputParameterType.Factory.newInstance();
        output.setParameterName("echo_output");
        ParameterType parameterType1 = output.addNewParameterType();
        parameterType1.setType(DataType.STRING);
        parameterType1.setName("String");

        inputList.add(input);
        outputList.add(output);

        InputParameterType[] inputParamList = inputList.toArray(new InputParameterType[inputList.size()]);
View Full Code Here

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

        serviceDescription.getType().setDescription("Echo service");
        // Creating input parameters
        InputParameterType parameter = InputParameterType.Factory.newInstance();
        parameter.setParameterName("echo_input");
        parameter.setParameterDescription("echo input");
        ParameterType parameterType = parameter.addNewParameterType();
        parameterType.setType(DataType.STRING);
        parameterType.setName("String");
        inputParameters.add(parameter);

        // Creating output parameters
        OutputParameterType outputParameter = OutputParameterType.Factory.newInstance();
        outputParameter.setParameterName("echo_output");
        outputParameter.setParameterDescription("Echo output");
        ParameterType outputParaType = outputParameter.addNewParameterType();
        outputParaType.setType(DataType.STRING);
        outputParaType.setName("String");
        outputParameters.add(outputParameter);

        // Setting input and output parameters to serviceDescriptor
        serviceDescription.getType().setInputParametersArray(inputParameters.toArray(new InputParameterType[]{}));
        serviceDescription.getType().setOutputParametersArray(outputParameters.toArray(new OutputParameterType[]{}));
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.ParameterType

        }
    }

    protected void doWriteParam(StringBuilder sb, Parameter pm, Class<?> type,
                                Type genericType, String paramName, Annotation[] anns, boolean isJson) {
        ParameterType pType = pm.getType();
        boolean isForm = isFormParameter(pm, type, anns);
        if (paramName == null && isForm) {
            Multipart m = AnnotationUtils.getAnnotation(anns, Multipart.class);
            if (m != null) {
                paramName = m.value();
            }
        }
        sb.append("<param name=\"").append(paramName).append("\" ");
        String style = ParameterType.PATH == pType ? "template"
                       : isForm ? "query"
                       : ParameterType.REQUEST_BODY == pType ? "plain"   
                       : pType.toString().toLowerCase();
        sb.append("style=\"").append(style).append("\"");
        if (pm.getDefaultValue() != null) {
            sb.append(" default=\"").append(pm.getDefaultValue()).append("\"");
        }
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.ParameterType

        }
    }

    protected void doWriteParam(StringBuilder sb, Parameter pm, Class<?> type, Type genericType,
                                String paramName, Annotation[] anns, boolean isJson) {
        ParameterType pType = pm.getType();
        boolean isForm = isFormParameter(pm, type, anns);
        if (paramName == null && isForm) {
            Multipart m = AnnotationUtils.getAnnotation(anns, Multipart.class);
            if (m != null) {
                paramName = m.value();
            }
        }
        sb.append("<param name=\"").append(paramName).append("\" ");
        String style = ParameterType.PATH == pType ? "template" : isForm
            ? "query" : ParameterType.REQUEST_BODY == pType ? "plain" : pType.toString().toLowerCase();
        sb.append("style=\"").append(style).append("\"");
        if (pm.getDefaultValue() != null) {
            sb.append(" default=\"").append(xmlEncodeIfNeeded(pm.getDefaultValue()))
                .append("\"");
        }
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.ParameterType

        }
    }

    protected void doWriteParam(StringBuilder sb, Parameter pm, Class<?> type,
                                Type genericType, String paramName, Annotation[] anns, boolean isJson) {
        ParameterType pType = pm.getType();
        boolean isForm = isFormParameter(pm, type, anns);
        if (paramName == null && isForm) {
            Multipart m = AnnotationUtils.getAnnotation(anns, Multipart.class);
            if (m != null) {
                paramName = m.value();
            }
        }
        sb.append("<param name=\"").append(paramName).append("\" ");
        String style = ParameterType.PATH == pType ? "template"
                       : isForm ? "query"
                       : ParameterType.REQUEST_BODY == pType ? "plain"   
                       : pType.toString().toLowerCase();
        sb.append("style=\"").append(style).append("\"");
        if (pm.getDefaultValue() != null) {
            sb.append(" default=\"").append(pm.getDefaultValue()).append("\"");
        }
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
View Full Code Here

Examples of org.apache.cxf.jaxrs.model.ParameterType

        }
    }

    protected void doWriteParam(StringBuilder sb, Parameter pm, Class<?> type,
                                Type genericType, String paramName, Annotation[] anns, boolean isJson) {
        ParameterType pType = pm.getType();
        boolean isForm = isFormParameter(pm, type, anns);
        if (paramName == null && isForm) {
            Multipart m = AnnotationUtils.getAnnotation(anns, Multipart.class);
            if (m != null) {
                paramName = m.value();
            }
        }
        sb.append("<param name=\"").append(paramName).append("\" ");
        String style = ParameterType.PATH == pType ? "template"
                       : isForm ? "query"
                       : ParameterType.REQUEST_BODY == pType ? "plain"   
                       : pType.toString().toLowerCase();
        sb.append("style=\"").append(style).append("\"");
        if (pm.getDefaultValue() != null) {
            sb.append(" default=\"").append(pm.getDefaultValue()).append("\"");
        }
        if (InjectionUtils.isSupportedCollectionOrArray(type)) {
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.