Package com.leansoft.mwsc.model

Examples of com.leansoft.mwsc.model.ParameterInfo


         
          if (this.isWrapped(operation)) { // wrapped request parameter
                  Block reqBlock = operation.getRequest().getBodyBlocks().next();
                  String parameterTypeName = reqBlock.getType().getJavaType().getName();
                 
            ParameterInfo paramInfo = new ParameterInfo();
                  paramInfo.setName("request");
            // param type
            TypeInfo paramType = new TypeInfo();
            paramType.setFullName(parameterTypeName);
            paramType.setName(ClassNameUtil
                .stripQualifier(parameterTypeName));
            paramInfo.setType(paramType);
           
            // add this param in method definition
            methodInfo.getParameters().add(paramInfo);
          } else {
            for (JavaParameter parameter : method.getParametersList()) {
              ParameterInfo paramInfo = new ParameterInfo();
             
              // param name
              paramInfo.setName(parameter.getName());
              // param type
              TypeInfo paramType = new TypeInfo();
              paramType.setFullName(parameter.getType().getName());
              paramType.setName(ClassNameUtil
                  .stripQualifier(parameter.getType().getName()));
              paramInfo.setType(paramType);
             
              // @WebParam
              paramInfo.setWebParamAnnotation(getWebParamAnnotation(operation, parameter));
             
              // add this param in method definition
              methodInfo.getParameters().add(paramInfo);
              //methodJavaDoc += NEW_LINE + "@param " + parameter.getName();
            }
View Full Code Here

TOP

Related Classes of com.leansoft.mwsc.model.ParameterInfo

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.