Package com.sun.tools.ws.processor.model

Examples of com.sun.tools.ws.processor.model.Block


                  returnTypeName = method.getReturnType().getType()
            .getName();
                }
          if (this.isWrapped(operation)) { // wrapped response
                Response response = operation.getResponse();
                    Block resBlock = response.getBodyBlocks().next();
                    returnTypeName = resBlock.getType().getJavaType().getName();
          }
          TypeInfo returnType = new TypeInfo();
          returnType.setFullName(returnTypeName);
          returnType.setName(ClassNameUtil
              .stripQualifier(returnTypeName));
          methodInfo.setReturnType(returnType);
         
          methodInfo.setWebMethodAnnotation(getWebMethodAnnotation(operation, method.getName()));
          methodInfo.setWebResultAnnotation(getWebResultAnnotation(operation));
          methodInfo.setSoapBindingAnnotation(getSOAPBindingAnnotation(operation));
         
          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();
View Full Code Here


    }
   
    private WebResultAnnotation getWebResultAnnotation(Operation operation) {
      WebResultAnnotation webResultAnno = null;
     
        Block block;
        String resultName = null;
        String nsURI = null;
        if (operation.getResponse().getBodyBlocks().hasNext()) {
            block = operation.getResponse().getBodyBlocks().next();
            resultName = block.getName().getLocalPart();
            if(isDocStyle || block.getLocation() == Block.HEADER){
                nsURI = block.getName().getNamespaceURI();
            }
        }

        for (Parameter parameter : operation.getResponse().getParametersList()) {
            if (parameter.getParameterIndex() == -1) {
View Full Code Here

        return false;
    }
   
    private boolean isMessageParam(Parameter param, Message message) {
        Block block = param.getBlock();

        return (message.getBodyBlockCount() > 0 && block.equals(message.getBodyBlocks().next())) ||
               (message.getHeaderBlockCount() > 0 &&
               block.equals(message.getHeaderBlocks().next()));
    }
View Full Code Here

TOP

Related Classes of com.sun.tools.ws.processor.model.Block

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.