gpt4 book ai didi

org.codehaus.enunciate.contract.jaxws.WebMethod.getReturnType()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 10:07:05 25 4
gpt4 key购买 nike

本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.getReturnType()方法的一些代码示例,展示了WebMethod.getReturnType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMethod.getReturnType()方法的具体详情如下:
包路径:org.codehaus.enunciate.contract.jaxws.WebMethod
类名称:WebMethod
方法名:getReturnType

WebMethod.getReturnType介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

public Collection<WebMessagePart> getParts() {
 ArrayList<WebMessagePart> parts = new ArrayList<WebMessagePart>();
 for (WebParam webParam : this.webMethod.getWebParameters()) {
  if ((webParam.isOutput()) && (!webParam.isHeader())) {
   parts.add(webParam);
  }
 }
 TypeMirror returnType = this.webMethod.getReturnType();
 if (!(returnType instanceof VoidType)) {
  parts.add(this.webMethod.getWebResult());
 }
 return parts;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

public Collection<WebMessagePart> getParts() {
 ArrayList<WebMessagePart> parts = new ArrayList<WebMessagePart>();
 for (WebParam webParam : this.webMethod.getWebParameters()) {
  if ((webParam.isOutput()) && (!webParam.isHeader())) {
   parts.add(webParam);
  }
 }
 TypeMirror returnType = this.webMethod.getReturnType();
 if (!(returnType instanceof VoidType)) {
  parts.add(this.webMethod.getWebResult());
 }
 return parts;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The collection of output parameters for this response.
 *
 * @return The collection of output parameters for this response.
 */
public Collection<ImplicitChildElement> getChildElements() {
 Collection<ImplicitChildElement> childElements = new ArrayList<ImplicitChildElement>();
 if (!(webMethod.getReturnType() instanceof VoidType)) {
  WebResult webResult = webMethod.getWebResult();
  if (!webResult.isHeader()) {
   childElements.add(webResult);
  }
 }
 for (WebParam webParam : webMethod.getWebParameters()) {
  if (webParam.isOutput() && !webParam.isHeader()) {
   childElements.add(webParam);
  }
 }
 return childElements;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The collection of output parameters for this response.
 *
 * @return The collection of output parameters for this response.
 */
public Collection<ImplicitChildElement> getChildElements() {
 Collection<ImplicitChildElement> childElements = new ArrayList<ImplicitChildElement>();
 if (!(webMethod.getReturnType() instanceof VoidType)) {
  WebResult webResult = webMethod.getWebResult();
  if (!webResult.isHeader()) {
   childElements.add(webResult);
  }
 }
 for (WebParam webParam : webMethod.getWebParameters()) {
  if (webParam.isOutput() && !webParam.isHeader()) {
   childElements.add(webParam);
  }
 }
 return childElements;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

this.oneWay = getAnnotation(Oneway.class) != null;
this.endpointInterface = endpointInterface;
TypeMirror returnType = getReturnType();
MapType mapType = MapTypeUtil.findMapType(returnType);
if (mapType != null) {
  if ((!isOneWay()) && (!(getReturnType() instanceof VoidType))) {
   messages.add(webResult);

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

this.oneWay = getAnnotation(Oneway.class) != null;
this.endpointInterface = endpointInterface;
this.webResult = new WebResult(getReturnType(), this);
  if (!isOneWay() && !(getReturnType() instanceof VoidType) && !webResult.isHeader()) {
   messages.add(webResult);

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

DecoratedTypeMirror returnType = (DecoratedTypeMirror) webMethod.getReturnType();
 if (!returnType.isVoid()) {
  imports.add(classnameFor.convert((ImplicitChildElement) webMethod.getWebResult()));
DecoratedTypeMirror returnType = (DecoratedTypeMirror) webMethod.getReturnType();
if (!returnType.isVoid()) {
 imports.add(classnameFor.convert((ImplicitChildElement) webMethod.getWebResult()));

代码示例来源:origin: org.codehaus.enunciate/enunciate-amf

DecoratedTypeMirror returnType = (DecoratedTypeMirror) webMethod.getReturnType();
 if (!returnType.isVoid()) {
  imports.add(classnameFor.convert((ImplicitChildElement) webMethod.getWebResult()));
DecoratedTypeMirror returnType = (DecoratedTypeMirror) webMethod.getReturnType();
if (!returnType.isVoid()) {
 imports.add(classnameFor.convert((ImplicitChildElement) webMethod.getWebResult()));

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

SOAPBinding.Style soapBindingStyle = webMethod.getSoapBindingStyle();
if (oneway && (!(webMethod.getReturnType() instanceof VoidType))) {
 result.addError(webMethod, "A one-way method must have a void return type.");

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

SOAPBinding.Style soapBindingStyle = webMethod.getSoapBindingStyle();
if (oneway && (!(webMethod.getReturnType() instanceof VoidType))) {
 result.addError(webMethod.getPosition(), "A one-way method must have a void return type.");

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com