Package org.apache.airavata.rest.mappings.resourcemappings

Examples of org.apache.airavata.rest.mappings.resourcemappings.ServiceDescriptor


        serviceDescription.getType().setOutputParametersArray(outputParameterTypeArray);
        return serviceDescription;
    }

    public static ServiceDescriptor createServiceDescriptor(ServiceDescription serviceDescription){
        ServiceDescriptor serviceDescriptor = new ServiceDescriptor();
        serviceDescriptor.setServiceName(serviceDescription.getType().getName());
        serviceDescriptor.setDescription(serviceDescription.getType().getDescription());
        InputParameterType[] inputParametersArray = serviceDescription.getType().getInputParametersArray();
        OutputParameterType[] outputParametersArray = serviceDescription.getType().getOutputParametersArray();
        List<ServiceParameters> inputParams = new ArrayList<ServiceParameters>();
        List<ServiceParameters> outputParams = new ArrayList<ServiceParameters>();

        for (int i = 0; i < inputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(inputParametersArray[i].getParameterType().getType().toString());
//            String[] parameterValueArray = inputParametersArray[i].getParameterValueArray();
//            if (parameterValueArray.length != 0){
//                serviceParameters.setName(parameterValueArray[0]);
//            }
            serviceParameters.setName(inputParametersArray[i].getParameterName());
            serviceParameters.setDescription(inputParametersArray[i].getParameterDescription());
//            serviceParameters.set(inputParametersArray[i].getParameterType().getType().toString());
            inputParams.add(serviceParameters);
        }
        serviceDescriptor.setInputParams(inputParams);

        for (int i = 0; i < outputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(outputParametersArray[i].getParameterType().getType().toString());
            serviceParameters.setName(outputParametersArray[i].getParameterName());
            serviceParameters.setDescription(outputParametersArray[i].getParameterDescription());
//            serviceParameters.setDataType(outputParametersArray[i].getParameterType().getType().toString());
            outputParams.add(serviceParameters);
        }
        serviceDescriptor.setOutputParams(outputParams);
        return serviceDescriptor;
    }
View Full Code Here


        serviceDescription.getType().setOutputParametersArray(outputParameterTypeArray);
        return serviceDescription;
    }

    public static ServiceDescriptor createServiceDescriptor(ServiceDescription serviceDescription){
        ServiceDescriptor serviceDescriptor = new ServiceDescriptor();
        serviceDescriptor.setServiceName(serviceDescription.getType().getName());
        serviceDescriptor.setDescription(serviceDescription.getType().getDescription());
        InputParameterType[] inputParametersArray = serviceDescription.getType().getInputParametersArray();
        OutputParameterType[] outputParametersArray = serviceDescription.getType().getOutputParametersArray();
        List<ServiceParameters> inputParams = new ArrayList<ServiceParameters>();
        List<ServiceParameters> outputParams = new ArrayList<ServiceParameters>();

        for (int i = 0; i < inputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(inputParametersArray[i].getParameterType().getType().toString());
//            String[] parameterValueArray = inputParametersArray[i].getParameterValueArray();
//            if (parameterValueArray.length != 0){
//                serviceParameters.setName(parameterValueArray[0]);
//            }
            serviceParameters.setName(inputParametersArray[i].getParameterName());
            serviceParameters.setDescription(inputParametersArray[i].getParameterDescription());
//            serviceParameters.set(inputParametersArray[i].getParameterType().getType().toString());
            inputParams.add(serviceParameters);
        }
        serviceDescriptor.setInputParams(inputParams);

        for (int i = 0; i < outputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(outputParametersArray[i].getParameterType().getType().toString());
            serviceParameters.setName(outputParametersArray[i].getParameterName());
            serviceParameters.setDescription(outputParametersArray[i].getParameterDescription());
//            serviceParameters.setDataType(outputParametersArray[i].getParameterType().getType().toString());
            outputParams.add(serviceParameters);
        }
        serviceDescriptor.setOutputParams(outputParams);
        return serviceDescriptor;
    }
View Full Code Here

        serviceDescription.getType().setOutputParametersArray(outputParameterTypeArray);
        return serviceDescription;
    }

    public static ServiceDescriptor createServiceDescriptor(ServiceDescription serviceDescription){
        ServiceDescriptor serviceDescriptor = new ServiceDescriptor();
        serviceDescriptor.setServiceName(serviceDescription.getType().getName());
        serviceDescriptor.setDescription(serviceDescription.getType().getDescription());
        InputParameterType[] inputParametersArray = serviceDescription.getType().getInputParametersArray();
        OutputParameterType[] outputParametersArray = serviceDescription.getType().getOutputParametersArray();
        List<ServiceParameters> inputParams = new ArrayList<ServiceParameters>();
        List<ServiceParameters> outputParams = new ArrayList<ServiceParameters>();

        for (int i = 0; i < inputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(inputParametersArray[i].getParameterType().getType().toString());
//            String[] parameterValueArray = inputParametersArray[i].getParameterValueArray();
//            if (parameterValueArray.length != 0){
//                serviceParameters.setName(parameterValueArray[0]);
//            }
            serviceParameters.setName(inputParametersArray[i].getParameterName());
            serviceParameters.setDescription(inputParametersArray[i].getParameterDescription());
//            serviceParameters.set(inputParametersArray[i].getParameterType().getType().toString());
            inputParams.add(serviceParameters);
        }
        serviceDescriptor.setInputParams(inputParams);

        for (int i = 0; i < outputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(outputParametersArray[i].getParameterType().getType().toString());
            serviceParameters.setName(outputParametersArray[i].getParameterName());
            serviceParameters.setDescription(outputParametersArray[i].getParameterDescription());
//            serviceParameters.setDataType(outputParametersArray[i].getParameterType().getType().toString());
            outputParams.add(serviceParameters);
        }
        serviceDescriptor.setOutputParams(outputParams);
        return serviceDescriptor;
    }
View Full Code Here

        serviceDescription.getType().setOutputParametersArray(outputParameterTypeArray);
        return serviceDescription;
    }

    public static ServiceDescriptor createServiceDescriptor(ServiceDescription serviceDescription){
        ServiceDescriptor serviceDescriptor = new ServiceDescriptor();
        serviceDescriptor.setServiceName(serviceDescription.getType().getName());
        serviceDescriptor.setDescription(serviceDescription.getType().getDescription());
        InputParameterType[] inputParametersArray = serviceDescription.getType().getInputParametersArray();
        OutputParameterType[] outputParametersArray = serviceDescription.getType().getOutputParametersArray();
        List<ServiceParameters> inputParams = new ArrayList<ServiceParameters>();
        List<ServiceParameters> outputParams = new ArrayList<ServiceParameters>();

        for (int i = 0; i < inputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(inputParametersArray[i].getParameterType().getType().toString());
//            String[] parameterValueArray = inputParametersArray[i].getParameterValueArray();
//            if (parameterValueArray.length != 0){
//                serviceParameters.setName(parameterValueArray[0]);
//            }
            serviceParameters.setName(inputParametersArray[i].getParameterName());
            serviceParameters.setDescription(inputParametersArray[i].getParameterDescription());
//            serviceParameters.set(inputParametersArray[i].getParameterType().getType().toString());
            inputParams.add(serviceParameters);
        }
        serviceDescriptor.setInputParams(inputParams);

        for (int i = 0; i < outputParametersArray.length; i++){
            ServiceParameters serviceParameters = new ServiceParameters();
            serviceParameters.setType(outputParametersArray[i].getParameterType().getType().toString());
            serviceParameters.setName(outputParametersArray[i].getParameterName());
            serviceParameters.setDescription(outputParametersArray[i].getParameterDescription());
//            serviceParameters.setDataType(outputParametersArray[i].getParameterType().getType().toString());
            outputParams.add(serviceParameters);
        }
        serviceDescriptor.setOutputParams(outputParams);
        return serviceDescriptor;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.rest.mappings.resourcemappings.ServiceDescriptor

Copyright © 2018 www.massapicom. 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.