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

x33g5p2x  于2022-02-03 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(90)

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

WebFault.getImplicitFaultBeanQualifiedName介绍

[英]The qualified name of the implicit fault bean of this web fault, or null if this web fault does not define an implicit faul bean.
[中]此web错误的隐式错误bean的限定名,如果此web错误未定义隐式faul bean,则为null。

代码示例

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

/**
 * Validates a web fault.
 *
 * @param webFault       The web fault to validate.
 * @param alreadyVisited The bean names that have alrady been visited.
 * @return The validation result.
 */
public ValidationResult validateWebFault(WebFault webFault, Set<String> alreadyVisited) {
 AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
 ValidationResult result = new ValidationResult();
 if (webFault.isImplicitSchemaElement()) {
  String faultBeanFQN = webFault.getImplicitFaultBeanQualifiedName();
  if (!alreadyVisited.add(faultBeanFQN)) {
   result.addError(webFault, faultBeanFQN + " conflicts with another generated bean name.  Please use the @WebFault annotation " +
    "to customize the fault bean name.");
  }
  else if (ape.getTypeDeclaration(faultBeanFQN) != null) {
   result.addError(webFault, faultBeanFQN + " is an existing class.  Either move it, or customize the fault bean name with the " +
    "@WebFault annotation.");
  }
 }
 return result;
}

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

/**
 * Validates a web fault.
 *
 * @param webFault       The web fault to validate.
 * @param alreadyVisited The bean names that have alrady been visited.
 * @return The validation result.
 */
public ValidationResult validateWebFault(WebFault webFault, Set<String> alreadyVisited) {
 AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
 ValidationResult result = new ValidationResult();
 if (webFault.isImplicitSchemaElement()) {
  String faultBeanFQN = webFault.getImplicitFaultBeanQualifiedName();
  if (!alreadyVisited.add(faultBeanFQN)) {
   result.addError(webFault.getPosition(), faultBeanFQN + " conflicts with another generated bean name.  Please use the @WebFault annotation " +
    "to customize the fault bean name.");
  }
  else if (ape.getTypeDeclaration(faultBeanFQN) != null) {
   result.addError(webFault.getPosition(), faultBeanFQN + " is an existing class.  Either move it, or customize the fault bean name with the " +
    "@WebFault annotation.");
  }
 }
 return result;
}

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

String faultClass = classnameFor.convert(webFault);
boolean implicit = webFault.isImplicitSchemaElement();
String faultBean = implicit ? getBeanName(classnameFor, webFault.getImplicitFaultBeanQualifiedName()) : classnameFor.convert(webFault.getExplicitFaultBean());

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

String faultClass = classnameFor.convert(webFault);
boolean implicit = webFault.isImplicitSchemaElement();
String faultBean = implicit ? getBeanName(classnameFor, webFault.getImplicitFaultBeanQualifiedName()) : classnameFor.convert(webFault.getExplicitFaultBeanType());

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

String faultBean = implicit ? getBeanName(classnameFor, webFault.getImplicitFaultBeanQualifiedName()) : classnameFor.convert(webFault.getExplicitFaultBeanType());
seeAlsos.add(faultBean);

相关文章