org.apache.ws.commons.schema.XmlSchemaGroupRef.<init>()方法的使用及代码示例

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

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

XmlSchemaGroupRef.<init>介绍

[英]Creates new XmlSchemaGroupRef
[中]创建新的XmlSchemaGroupRef

代码示例

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

private XmlSchemaGroupRef handleGroupRef(XmlSchema schema, Element groupEl,
    Element schemaEl) {
  XmlSchemaGroupRef group = new XmlSchemaGroupRef();
  group.maxOccurs = getMaxOccurs(groupEl);
  group.minOccurs = getMinOccurs(groupEl);
  Element annotationEl = XDOMUtil.getFirstChildElementNS(groupEl,
      XmlSchema.SCHEMA_NS, "annotation");
  if (annotationEl != null) {
    XmlSchemaAnnotation annotation = handleAnnotation(annotationEl);
    group.setAnnotation(annotation);
  }
  if (groupEl.hasAttribute("ref")) {
    String ref = groupEl.getAttribute("ref");
    group.refName = getRefQName(ref, groupEl);
    return group;
  }
  for (Element el = XDOMUtil.getFirstChildElementNS(groupEl,
      XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil
      .getNextSiblingElement(el)) {
    if (el.getLocalName().equals("sequence")) {
      group.particle = handleSequence(schema, el, schemaEl);
    } else if (el.getLocalName().equals("all")) {
      group.particle = handleAll(schema, el, schemaEl);
    } else if (el.getLocalName().equals("choice")) {
      group.particle = handleChoice(schema, el, schemaEl);
    }
  }
  return group;
}

代码示例来源:origin: org.apache.ws.schema/XmlSchema

private XmlSchemaGroupRef handleGroupRef(XmlSchema schema, Element groupEl,
    Element schemaEl) {
  XmlSchemaGroupRef group = new XmlSchemaGroupRef();
  group.maxOccurs = getMaxOccurs(groupEl);
  group.minOccurs = getMinOccurs(groupEl);
  Element annotationEl = XDOMUtil.getFirstChildElementNS(groupEl,
      XmlSchema.SCHEMA_NS, "annotation");
  if (annotationEl != null) {
    XmlSchemaAnnotation annotation = handleAnnotation(annotationEl);
    group.setAnnotation(annotation);
  }
  if (groupEl.hasAttribute("ref")) {
    String ref = groupEl.getAttribute("ref");
    group.refName = getRefQName(ref, groupEl);
    return group;
  }
  for (Element el = XDOMUtil.getFirstChildElementNS(groupEl,
      XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil
      .getNextSiblingElement(el)) {
    if (el.getLocalName().equals("sequence")) {
      group.particle = handleSequence(schema, el, schemaEl);
    } else if (el.getLocalName().equals("all")) {
      group.particle = handleAll(schema, el, schemaEl);
    } else if (el.getLocalName().equals("choice")) {
      group.particle = handleChoice(schema, el, schemaEl);
    }
  }
  return group;
}

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

private XmlSchemaGroupRef handleGroupRef(XmlSchema schema,
                     Element groupEl, Element schemaEl) {
  XmlSchemaGroupRef group = new XmlSchemaGroupRef();

相关文章

微信公众号

最新文章

更多