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

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

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

WebFault.getQualifiedName介绍

暂无

代码示例

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

protected Iterator<WebFault> getLoop(TemplateModel model) throws TemplateException {
 WsdlInfo wsdl = this.wsdl;
 if (wsdl == null) {
  throw new MissingParameterException("wsdl");
 }
 HashMap<String, WebFault> declaredFaults = new HashMap<String, WebFault>();
 for (EndpointInterface ei : wsdl.getEndpointInterfaces()) {
  Collection<WebMethod> webMethods = ei.getWebMethods();
  for (WebMethod webMethod : webMethods) {
   for (WebFault webFault : webMethod.getWebFaults()) {
    declaredFaults.put(webFault.getQualifiedName(), webFault);
   }
  }
 }
 return declaredFaults.values().iterator();
}

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

protected Iterator<WebFault> getLoop(TemplateModel model) throws TemplateException {
 Collection<WsdlInfo> wsdls;
 if (this.wsdl != null) {
  wsdls = Arrays.asList(wsdl);
 }
 else {
  wsdls = getNamespacesToWSDLs().values();
 }
 HashMap<String, WebFault> declaredFaults = new HashMap<String, WebFault>();
 for (WsdlInfo wsdl : wsdls) {
  for (EndpointInterface ei : wsdl.getEndpointInterfaces()) {
   Collection<WebMethod> webMethods = ei.getWebMethods();
   for (WebMethod webMethod : webMethods) {
    for (WebFault webFault : webMethod.getWebFaults()) {
     declaredFaults.put(webFault.getQualifiedName(), webFault);
    }
   }
  }
 }
 return declaredFaults.values().iterator();
}

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

/**
 * Calculates a namespace URI for a given package.  Default implementation uses the algorithm defined in
 * section 3.2 of the jax-ws spec.
 *
 * @return The calculated namespace uri.
 */
protected String calculateNamespaceURI() {
 PackageDeclaration pkg = getPackage();
 if ((pkg == null) || ("".equals(pkg.getQualifiedName()))) {
  throw new ValidationException(getPosition(), getQualifiedName() + ": a web fault in no package must specify a target namespace.");
 }
 String[] tokens = pkg.getQualifiedName().split("\\.");
 String uri = "http://";
 for (int i = tokens.length - 1; i >= 0; i--) {
  uri += tokens[i];
  if (i != 0) {
   uri += ".";
  }
 }
 uri += "/";
 return uri;
}

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

for (WebFault webFault : webMethod.getWebFaults()) {
 try {
  if (!webFault.getQualifiedName().equals(clientConversion.convert(webFault))) {
   result.addError(webFault, "If you're using server-side types in your client library, you can't convert the name of "
    + webFault.getQualifiedName() + " to " + clientConversion.convert(webFault) + ".");

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

for (WebMethod method : webMethods) {
 for (WebMessage webMessage : method.getMessages()) {
  if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName())) {
   continue;

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

public int compare(ImplicitChildElement o1, ImplicitChildElement o2) {
  int index1 = -1;
  int index2 = -1;
  for (int i = 0; i < propOrder.value().length; i++) {
   String prop = propOrder.value()[i];
   if (o1.getElementName().equals(prop)) {
    index1 = i;
   }
   if (o2.getElementName().equals(prop)) {
    index2 = i;
   }
  }
  if (index1 < 0) {
   throw new ValidationException(WebFault.this.getPosition(), WebFault.this.getQualifiedName() + ": @WebFaultPropertyOrder doesn't specify a property '" + o1.getElementName() + "'.");
  }
  else if (index2 < 0) {
   throw new ValidationException(WebFault.this.getPosition(), WebFault.this.getQualifiedName() + ": @WebFaultPropertyOrder doesn't specify a property '" + o2.getElementName() + "'.");
  }
  else {
   return index1 - index2;
  }
 }
});

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

for (WebMethod method : webMethods) {
 for (WebMessage webMessage : method.getMessages()) {
  if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName())) {
   continue;

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

public XmlType getXmlType() {
 try {
  XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
  if (xmlType == null) {
   xmlType = XmlTypeFactory.getXmlType(getType());
  }
  return xmlType;
 }
 catch (XmlTypeException e) {
  throw new ValidationException(property.getPosition(), "Error with property '" + property.getPropertyName() + "' of fault '" +
   webFault.getQualifiedName() + "'. " + e.getMessage());
 }
}

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

ClassType faultInfoType = (ClassType) faultInfoProperty.getPropertyType();
if (faultInfoType.getDeclaration() == null) {
 throw new ValidationException(getPosition(), getQualifiedName() + ": class not found: " + faultInfoType + ".");

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

debug("Skipping generating fault for %s because it's in a known GWT module.", webFault.getQualifiedName());
model.put("fault", webFault);
processTemplate(faultMapperTemplate, model);
gwt2jaxbMappings.setProperty(classnameFor.convert(webFault), webFault.getQualifiedName());

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

allFaults.put(fault.getQualifiedName(), fault);

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

allFaults.put(fault.getQualifiedName(), fault);

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

allFaults.put(fault.getQualifiedName(), fault);
SourcePosition position = webFault.getPosition();
if (position == null || position.file() == null) {
 throw new IllegalStateException("Unable to find source file for " + webFault.getQualifiedName());

相关文章