gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-19 02:02:40 27 4
gpt4 key购买 nike

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

XmlSchemaAppInfo.getMarkup介绍

暂无

代码示例

代码示例来源:origin: com.legsem.legstar/legstar-jaxbgen

/**
 * The content of appinfo is a raw W3C nodelist. It is convenient to put
 * this nodelist inside a DOM fragment called parent markup that we create
 * or recover here.
 * 
 * @param appInfo the application info element
 * @return a parent DOM fragment for the annotation nodes list
 */
protected DocumentFragment getMarkupParent(final XmlSchemaAppInfo appInfo) {
  NodeList markup = appInfo.getMarkup();
  DocumentFragment markupParent = null;
  if (markup == null || markup.getLength() == 0) {
    markupParent = _db.newDocument().createDocumentFragment();
  } else {
    markupParent = (DocumentFragment) markup.item(0).getParentNode();
  }
  return markupParent;
}

代码示例来源:origin: com.legsem.legstar/legstar-xsd2cob

/**
 * Extracts the cobol annotation from an XML schema element.
 * 
 * @param xsdElement the XML schema element
 * @return the COBOL annotation or bull if none found
 */
protected Element getCobolAnnotation(XmlSchemaElement xsdElement) {
  XmlSchemaAnnotation annotation = xsdElement.getAnnotation();
  if (annotation != null && annotation.getItems().getCount() > 0) {
    XmlSchemaAppInfo appinfo = (XmlSchemaAppInfo) annotation.getItems()
        .getItem(0);
    if (appinfo.getMarkup() != null) {
      for (int i = 0; i < appinfo.getMarkup().getLength(); i++) {
        Node node = appinfo.getMarkup().item(i);
        if (node instanceof Element
            && node.getLocalName().equals(CobolMarkup.ELEMENT)
            && node.getNamespaceURI().equals(CobolMarkup.NS)) {
          return (Element) node;
        }
      }
    }
  }
  return null;
}

代码示例来源:origin: com.legsem.legstar/legstar-xsd2cob

/** {@inheritDoc} */
public void processElement(final XmlSchema schema,
    final XmlSchemaElement xsdElement, final int level)
    throws XsdMappingException {
  XmlSchemaAnnotation annotation = xsdElement.getAnnotation();
  if (annotation != null && annotation.getItems().getCount() > 0) {
    XmlSchemaAppInfo appinfo = (XmlSchemaAppInfo) annotation.getItems()
        .getItem(0);
    if (appinfo.getMarkup() != null) {
      for (int i = 0; i < appinfo.getMarkup().getLength(); i++) {
        Node node = appinfo.getMarkup().item(i);
        if (node instanceof Element
            && node.getLocalName().equals(CobolMarkup.ELEMENT)
            && node.getNamespaceURI().equals(CobolMarkup.NS)) {
          writeElement(schema, xsdElement, _writer,
              (Element) node, level);
        }
      }
    }
  }
}

代码示例来源:origin: apache/cxf

XmlSchemaAppInfo appInfo = (XmlSchemaAppInfo)item;
if (appInfo != null) {
  NodeList nlist = appInfo.getMarkup();
  Node node = nlist.item(0);
  String info = node.getNodeValue();

代码示例来源:origin: com.legsem.legstar/legstar-xsd2cob

NodeList markup = appInfo.getMarkup();
if (markup == null || markup.getLength() == 0) {

代码示例来源:origin: apache/cxf

NodeList nlist = appInfo.getMarkup();
Node node = nlist.item(0);
String info = node.getNodeValue();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com