Java Code Examples for com.sun.xml.internal.ws.wsdl.writer.document.Operation#parameterOrder()
The following examples show how to use
com.sun.xml.internal.ws.wsdl.writer.document.Operation#parameterOrder() .
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 TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * 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 jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * 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-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * 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 openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * 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 openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * 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 hottub with GNU General Public License v2.0 | 6 votes |
/** * 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-8-source with GNU General Public License v2.0 | 6 votes |
/** * 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 8
Source File: WSDLGenerator.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * 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 9
Source File: WSDLGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * 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 10
Source File: WSDLGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * 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 11
Source File: WSDLGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * 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 12
Source File: WSDLGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * 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 13
Source File: WSDLGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * 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 14
Source File: WSDLGenerator.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * 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: WSDLGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * 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 16
Source File: WSDLGenerator.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * 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()); } }