org.apache.tuscany.sca.interfacedef.wsdl.WSDLDefinition.getXmlSchemaElement()方法的使用及代码示例

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

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

WSDLDefinition.getXmlSchemaElement介绍

[英]Get an XSD element by QName
[中]按QName获取XSD元素

代码示例

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl

XmlSchemaElement element = d.getXmlSchemaElement(name);
  if ( element != null )
    return element; 
XmlSchemaElement element = d.getXmlSchemaElement(name);
if ( element != null )
  return element;

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

XmlSchemaElement element = d.getXmlSchemaElement(name);
  if ( element != null )
    return element; 
XmlSchemaElement element = d.getXmlSchemaElement(name);
if ( element != null )
  return element;

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

private XmlSchemaElement getElement(QName elementName) {
  XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName);
  if (element == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(elementName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      element = definition.getSchema().getElementByName(elementName);
    }
  }
  return element;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl

private XmlSchemaElement getElement(QName elementName) {
  XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName);
  if (element == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(elementName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      element = definition.getSchema().getElementByName(elementName);
    }
  }
  return element;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

if (wsdlDefinition.getXmlSchemaElement(wrapperName) != null) {
  wrappers.remove(wrapperName);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

if (wsdlDefinition.getXmlSchemaElement(wrapperName) != null) {
  wrappers.remove(wrapperName);

相关文章