org.apache.cxf.common.xmlschema.XmlSchemaUtils.getChoice()方法的使用及代码示例

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

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

XmlSchemaUtils.getChoice介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-api

private void addCrossImportsType(XmlSchema schema, XmlSchemaType schemaType) {
  // the base type might cross schemas.
  if (schemaType instanceof XmlSchemaComplexType) {
    XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaType;
    XmlSchemaUtils.addImportIfNeeded(schema, complexType.getBaseSchemaTypeName());
    addCrossImports(schema, complexType.getContentModel());
    addCrossImportsAttributeList(schema, complexType.getAttributes());
    // could it be a choice or something else?
    
    if (complexType.getParticle() instanceof XmlSchemaChoice) {
      XmlSchemaChoice choice = XmlSchemaUtils.getChoice(complexType);
      addCrossImports(schema, choice);
    } else if (complexType.getParticle() instanceof XmlSchemaAll) {
      XmlSchemaAll all = XmlSchemaUtils.getAll(complexType);
      addCrossImports(schema, all);
    } else {
      XmlSchemaSequence sequence = XmlSchemaUtils.getSequence(complexType);
      addCrossImports(schema, sequence);
    }
  }
}
private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

private void addCrossImportsType(XmlSchema schema, XmlSchemaType schemaType) {
  // the base type might cross schemas.
  if (schemaType instanceof XmlSchemaComplexType) {
    XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaType;
    XmlSchemaUtils.addImportIfNeeded(schema, complexType.getBaseSchemaTypeName());
    addCrossImports(schema, complexType.getContentModel());
    addCrossImportsAttributeList(schema, complexType.getAttributes());
    // could it be a choice or something else?
    
    if (complexType.getParticle() instanceof XmlSchemaChoice) {
      XmlSchemaChoice choice = XmlSchemaUtils.getChoice(complexType);
      addCrossImports(schema, choice);
    } else if (complexType.getParticle() instanceof XmlSchemaAll) {
      XmlSchemaAll all = XmlSchemaUtils.getAll(complexType);
      addCrossImports(schema, all);
    } else {
      XmlSchemaSequence sequence = XmlSchemaUtils.getSequence(complexType);
      addCrossImports(schema, sequence);
    }
  }
}
private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private void addCrossImportsType(XmlSchema schema, XmlSchemaType schemaType) {
  // the base type might cross schemas.
  if (schemaType instanceof XmlSchemaComplexType) {
    XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaType;
    XmlSchemaUtils.addImportIfNeeded(schema, complexType.getBaseSchemaTypeName());
    addCrossImports(schema, complexType.getContentModel());
    addCrossImportsAttributeList(schema, complexType.getAttributes());
    // could it be a choice or something else?
    
    if (complexType.getParticle() instanceof XmlSchemaChoice) {
      XmlSchemaChoice choice = XmlSchemaUtils.getChoice(complexType);
      addCrossImports(schema, choice);
    } else if (complexType.getParticle() instanceof XmlSchemaAll) {
      XmlSchemaAll all = XmlSchemaUtils.getAll(complexType);
      addCrossImports(schema, all);
    } else {
      XmlSchemaSequence sequence = XmlSchemaUtils.getSequence(complexType);
      addCrossImports(schema, sequence);
    }
  }
}
private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {

相关文章