com.sun.tools.internal.ws.processor.model.java.JavaParameter Java Examples
The following examples show how to use
com.sun.tools.internal.ws.processor.model.java.JavaParameter.
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: SeiGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #2
Source File: Parameter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #3
Source File: Parameter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #4
Source File: SeiGenerator.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #5
Source File: Parameter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #6
Source File: Parameter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #7
Source File: SeiGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #8
Source File: Parameter.java From hottub with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #9
Source File: Parameter.java From hottub with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #10
Source File: SeiGenerator.java From hottub with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #11
Source File: Parameter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #12
Source File: Parameter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #13
Source File: SeiGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #14
Source File: Parameter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #15
Source File: Parameter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #16
Source File: SeiGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #17
Source File: Parameter.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #18
Source File: Parameter.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #19
Source File: SeiGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #20
Source File: Parameter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #21
Source File: Parameter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }
Example #22
Source File: SeiGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void writeWebParam(Operation operation, JavaParameter javaParameter, JAnnotationUse paramAnno) { Parameter param = javaParameter.getParameter(); Request req = operation.getRequest(); Response res = operation.getResponse(); boolean header = isHeaderParam(param, req) || (res != null && isHeaderParam(param, res)); String name; boolean isWrapped = operation.isWrapped(); if ((param.getBlock().getLocation() == Block.HEADER) || (isDocStyle && !isWrapped)) { name = param.getBlock().getName().getLocalPart(); } else { name = param.getName(); } paramAnno.param("name", name); String ns= null; if (isDocStyle) { ns = param.getBlock().getName().getNamespaceURI(); // its bare nsuri if(isWrapped){ ns = param.getType().getName().getNamespaceURI(); } }else if(header){ ns = param.getBlock().getName().getNamespaceURI(); } if (ns != null || (isDocStyle && isWrapped)) { paramAnno.param("targetNamespace", ns); } if (header) { paramAnno.param("header", true); } if (param.isINOUT()){ paramAnno.param("mode", javax.jws.WebParam.Mode.INOUT); }else if ((res != null) && (isMessageParam(param, res) || isHeaderParam(param, res) || isAttachmentParam(param, res) || isUnboundParam(param,res) || param.isOUT())){ paramAnno.param("mode", javax.jws.WebParam.Mode.OUT); } //doclit wrapped could have additional headers if (!(isDocStyle && isWrapped) || header) { paramAnno.param("partName", javaParameter.getParameter().getName()); } }
Example #23
Source File: Parameter.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void setJavaParameter(JavaParameter p) { javaParameter = p; }
Example #24
Source File: Parameter.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public JavaParameter getJavaParameter() { return javaParameter; }