Java Code Examples for com.sun.xml.internal.ws.model.ParameterImpl#getPartName()

The following examples show how to use com.sun.xml.internal.ws.model.ParameterImpl#getPartName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSDLGenerator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 2
Source File: WSDLGenerator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 3
Source File: WSDLGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 4
Source File: WSDLGenerator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 5
Source File: WSDLGenerator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 6
Source File: WSDLGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
Example 7
Source File: WSDLGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
     * Generates the parameterOrder for a PortType operation
     * @param operation the operation to generate the parameterOrder for
     * @param method the {@link JavaMethod} to generate the parameterOrder from
     */
    protected void generateDocumentParameterOrder(Operation operation, JavaMethodImpl method) {
        String partName;
        StringBuilder paramOrder = new StringBuilder();
        Set<String> partNames = new HashSet<String>();
        List<ParameterImpl> sortedParams = sortMethodParameters(method);
//        boolean isWrapperStyle = isWrapperStyle(method);
        int i = 0;
        for (ParameterImpl parameter : sortedParams) {
//            System.out.println("param: "+parameter.getIndex()+" name: "+parameter.getName().getLocalPart());
            if (parameter.getIndex() < 0)
                continue;

            // This should be safe change. if it affects compatibility,
            // remove the following single statement and uncomment the code in block below.
            partName = parameter.getPartName();
            /*
            if (isWrapperStyle && isBodyParameter(parameter)) {
               System.out.println("isWrapper and is body");
                if (method.getRequestParameters().contains(parameter))
                    partName = PARAMETERS;
                else {
                    //Rama: don't understand this logic "Response" below,

                    // really make sure this is a wrapper style wsdl we are creating
                    partName = RESPONSE;
                }
            } else {
               partName = parameter.getPartName();
            }*/

            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
        if (i > 1) {
            operation.parameterOrder(paramOrder.toString());
        }
    }
 
Example 8
Source File: EndpointArgumentsBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, EndpointValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 9
Source File: ResponseBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 10
Source File: ResponseBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 11
Source File: EndpointArgumentsBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, EndpointValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 12
Source File: ResponseBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 13
Source File: ResponseBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 14
Source File: WSDLGenerator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
     * Generates the parameterOrder for a PortType operation
     * @param operation the operation to generate the parameterOrder for
     * @param method the {@link JavaMethod} to generate the parameterOrder from
     */
    protected void generateDocumentParameterOrder(Operation operation, JavaMethodImpl method) {
        String partName;
        StringBuilder paramOrder = new StringBuilder();
        Set<String> partNames = new HashSet<String>();
        List<ParameterImpl> sortedParams = sortMethodParameters(method);
//        boolean isWrapperStyle = isWrapperStyle(method);
        int i = 0;
        for (ParameterImpl parameter : sortedParams) {
//            System.out.println("param: "+parameter.getIndex()+" name: "+parameter.getName().getLocalPart());
            if (parameter.getIndex() < 0)
                continue;

            // This should be safe change. if it affects compatibility,
            // remove the following single statement and uncomment the code in block below.
            partName = parameter.getPartName();
            /*
            if (isWrapperStyle && isBodyParameter(parameter)) {
               System.out.println("isWrapper and is body");
                if (method.getRequestParameters().contains(parameter))
                    partName = PARAMETERS;
                else {
                    //Rama: don't understand this logic "Response" below,

                    // really make sure this is a wrapper style wsdl we are creating
                    partName = RESPONSE;
                }
            } else {
               partName = parameter.getPartName();
            }*/

            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
        if (i > 1) {
            operation.parameterOrder(paramOrder.toString());
        }
    }
 
Example 15
Source File: ResponseBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 16
Source File: WSDLGenerator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
     * Generates the parameterOrder for a PortType operation
     * @param operation the operation to generate the parameterOrder for
     * @param method the {@link JavaMethod} to generate the parameterOrder from
     */
    protected void generateDocumentParameterOrder(Operation operation, JavaMethodImpl method) {
        String partName;
        StringBuilder paramOrder = new StringBuilder();
        Set<String> partNames = new HashSet<String>();
        List<ParameterImpl> sortedParams = sortMethodParameters(method);
//        boolean isWrapperStyle = isWrapperStyle(method);
        int i = 0;
        for (ParameterImpl parameter : sortedParams) {
//            System.out.println("param: "+parameter.getIndex()+" name: "+parameter.getName().getLocalPart());
            if (parameter.getIndex() < 0)
                continue;

            // This should be safe change. if it affects compatibility,
            // remove the following single statement and uncomment the code in block below.
            partName = parameter.getPartName();
            /*
            if (isWrapperStyle && isBodyParameter(parameter)) {
               System.out.println("isWrapper and is body");
                if (method.getRequestParameters().contains(parameter))
                    partName = PARAMETERS;
                else {
                    //Rama: don't understand this logic "Response" below,

                    // really make sure this is a wrapper style wsdl we are creating
                    partName = RESPONSE;
                }
            } else {
               partName = parameter.getPartName();
            }*/

            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
        if (i > 1) {
            operation.parameterOrder(paramOrder.toString());
        }
    }
 
Example 17
Source File: EndpointArgumentsBuilder.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, EndpointValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 18
Source File: EndpointArgumentsBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, EndpointValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}
 
Example 19
Source File: WSDLGenerator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
     * Generates the parameterOrder for a PortType operation
     * @param operation the operation to generate the parameterOrder for
     * @param method the {@link JavaMethod} to generate the parameterOrder from
     */
    protected void generateDocumentParameterOrder(Operation operation, JavaMethodImpl method) {
        String partName;
        StringBuilder paramOrder = new StringBuilder();
        Set<String> partNames = new HashSet<String>();
        List<ParameterImpl> sortedParams = sortMethodParameters(method);
//        boolean isWrapperStyle = isWrapperStyle(method);
        int i = 0;
        for (ParameterImpl parameter : sortedParams) {
//            System.out.println("param: "+parameter.getIndex()+" name: "+parameter.getName().getLocalPart());
            if (parameter.getIndex() < 0)
                continue;

            // This should be safe change. if it affects compatibility,
            // remove the following single statement and uncomment the code in block below.
            partName = parameter.getPartName();
            /*
            if (isWrapperStyle && isBodyParameter(parameter)) {
               System.out.println("isWrapper and is body");
                if (method.getRequestParameters().contains(parameter))
                    partName = PARAMETERS;
                else {
                    //Rama: don't understand this logic "Response" below,

                    // really make sure this is a wrapper style wsdl we are creating
                    partName = RESPONSE;
                }
            } else {
               partName = parameter.getPartName();
            }*/

            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
        if (i > 1) {
            operation.parameterOrder(paramOrder.toString());
        }
    }
 
Example 20
Source File: ResponseBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
AttachmentBuilder(ParameterImpl param, ValueSetter setter) {
    this.setter = setter;
    this.param = param;
    this.pname = param.getPartName();
    this.pname1 = "<"+pname;
}