Package org.ogce.schemas.gfac.documents

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


      }

      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

      }

      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

            .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

                    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

                    }

                    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

        // 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

    InputParameterType[] inputparams = method.getInputParameterArray();
    ServiceParam[] inparam = new ServiceParam[inputparams.length];

    for (int i = 0; i < inputparams.length; i++) {
      inparam[i] = new ServiceParam();
      InputParameterType inputParameterType = inputparams[i];
      inparam[i].paramName = inputParameterType.getParameterName();
      inparam[i].paramDesc = inputParameterType.getParameterDescription();
      inparam[i].paramValue = inputParameterType.getParameterType().toString();

    }
    // Done to convert the parameter type of enum to string which was not
    // possible in JSF selectOneListbox. For inputText it works without
    // doing this change
View Full Code Here

TOP

Related Classes of org.ogce.schemas.gfac.documents.InputParameterType

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.