gpt4 book ai didi

org.apache.woden.XMLElement.getChildElements()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 13:21:40 25 4
gpt4 key购买 nike

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

XMLElement.getChildElements介绍

[英]Return an array of the child elements of this element or an empty array if no siblings are found.
[中]返回此元素的子元素数组,如果未找到同级元素,则返回空数组。

代码示例

代码示例来源:origin: org.apache.woden/woden-impl-commons

public Object next() {
  //Get next element.
  XMLElement element;
  try {
    element = (XMLElement)stack.pop(); 
  } catch (EmptyStackException e) {
    throw new NoSuchElementException();
  }
  //Add children to top of stack in reverse order.
  List children = Arrays.asList(element.getChildElements());
  Collections.reverse(children);
  stack.addAll(children);
  
  return element;
}

代码示例来源:origin: org.apache.woden/woden-core

public Object next() {
  //Get next element.
  XMLElement element;
  try {
    element = (XMLElement)stack.pop(); 
  } catch (EmptyStackException e) {
    throw new NoSuchElementException();
  }
  //Add children to top of stack in reverse order.
  List children = Arrays.asList(element.getChildElements());
  Collections.reverse(children);
  stack.addAll(children);
  
  return element;
}

代码示例来源:origin: org.apache.woden/woden-core

/**
 * Evaluates a child sequence array of Integers to an XMLElement following XML Document Order.
 * This is a helper method used by other evaluation methods in this class.
 * 
 * @param element an XMLElement to start from.
 * @param childSequence an Integer[] to evaluate from the start XMLElement.
 * @return an XMLElement pointed to by this childSequence, or null if none exists.
 */
private XMLElement evaluateChildSequence(XMLElement element, Integer[] childSequence) {
  for(int i=0; i<childSequence.length; i++) {
    //does the iTh child exist?
    XMLElement[] children = element.getChildElements();
    children = filterNoneElementNodes(children);
    if (childSequence[i].intValue() > children.length) { //childSequence int out of bounds of child array so does not exist.
      return null;
    } else {
      element = element.getChildElements()[childSequence[i].intValue()-1];
    }
  }
  return element;
}

代码示例来源:origin: org.apache.woden/woden-impl-commons

/**
 * Evaluates a child sequence array of Integers to an XMLElement following XML Document Order.
 * This is a helper method used by other evaluation methods in this class.
 * 
 * @param element an XMLElement to start from.
 * @param childSequence an Integer[] to evaluate from the start XMLElement.
 * @return an XMLElement pointed to by this childSequence, or null if none exists.
 */
private XMLElement evaluateChildSequence(XMLElement element, Integer[] childSequence) {
  for(int i=0; i<childSequence.length; i++) {
    //does the iTh child exist?
    XMLElement[] children = element.getChildElements();
    children = filterNoneElementNodes(children);
    if (childSequence[i].intValue() > children.length) { //childSequence int out of bounds of child array so does not exist.
      return null;
    } else {
      element = element.getChildElements()[childSequence[i].intValue()-1];
    }
  }
  return element;
}

代码示例来源:origin: org.apache.woden/woden-core

protected DocumentationElement parseDocumentation(
    XMLElement docEl, 
    DescriptionElement desc, 
    DocumentableElement parent) 
    throws WSDLException {
  DocumentationElement documentation = parent.addDocumentationElement();
  //TODO store docEl as below, or just extract any text? 
  documentation.setContent(docEl);
  //Now parse any extensibility attributes or elements
  parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);
  XMLElement[] children = docEl.getChildElements();
  XMLElement tempEl = null;
  for(int i=0; i<children.length; i++)
  {
    tempEl = children[i];
    documentation.addExtensionElement(
        parseExtensionElement(DocumentationElement.class, documentation, tempEl, desc) );
  }
  return documentation;
}

代码示例来源:origin: org.apache.woden/woden-impl-commons

protected DocumentationElement parseDocumentation(
    XMLElement docEl, 
    DescriptionElement desc, 
    DocumentableElement parent) 
    throws WSDLException {
  DocumentationElement documentation = parent.addDocumentationElement();
  //TODO store docEl as below, or just extract any text? 
  documentation.setContent(docEl);
  //Now parse any extensibility attributes or elements
  parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);
  XMLElement[] children = docEl.getChildElements();
  XMLElement tempEl = null;
  for(int i=0; i<children.length; i++)
  {
    tempEl = children[i];
    documentation.addExtensionElement(
        parseExtensionElement(DocumentationElement.class, documentation, tempEl, desc) );
  }
  return documentation;
}

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = typesEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = typesEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = bindOpEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = msgRefEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = msgRefEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = faultEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = faultEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = bindFaultEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = bindFaultEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = bindEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = serviceEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = serviceEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-core

XMLElement[] children = endpointEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

代码示例来源:origin: org.apache.woden/woden-impl-commons

XMLElement[] children = endpointEl.getChildElements();
XMLElement tempEl = null;
QName tempElQN = null;

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