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

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

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

XmlSchemaGroupRef.setAnnotation介绍

暂无

代码示例

代码示例来源: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

handleAnnotation(annotationEl);
group.setAnnotation(annotation);

相关文章

微信公众号

最新文章

更多