org.apache.abdera.model.Element.getElements()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(272)

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

Element.getElements介绍

[英]Return a listing of this elements child elements
[中]返回此元素的列表子元素

代码示例

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

  1. public <T extends Element> List<T> getElements() {
  2. return internal.getElements();
  3. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera

  1. public <T extends Element> List<T> getElements() {
  2. return internal.getElements();
  3. }

代码示例来源:origin: stackoverflow.com

  1. private int counter(List<Element> items) {
  2. int count = 0;
  3. for (Element item: items) {
  4. count ++; // for the item counting
  5. if (item.holdsElements) { // for inner elements
  6. count = count + counter(item.getElements());
  7. }
  8. }
  9. return count;
  10. }

代码示例来源:origin: com.atlassian.streams/streams-testing

  1. @Override
  2. protected boolean matchesSafely(Element element, Description mismatchDescription)
  3. {
  4. Collection<Element> linkElements = filter(element.getElements(), linkPredicate);
  5. if (linkElements.size() != 0)
  6. {
  7. for (Element linkElement : linkElements)
  8. {
  9. Link link = (Link) linkElement;
  10. if (!matcher.matches(link))
  11. {
  12. mismatchDescription.appendText("link ");
  13. matcher.describeMismatch(link, mismatchDescription);
  14. return false;
  15. }
  16. }
  17. }
  18. return true;
  19. }

代码示例来源:origin: org.xcmis/xcmis-restatom

  1. RequestContext request = initRequestContext(httpRequest);
  2. Document<?> doc = request.getDocument();
  3. List<AccessControlEntryTypeElement> listEl = doc.getRoot().getElements();
  4. List<AccessControlEntry> listACE = new ArrayList<AccessControlEntry>();
  5. for (AccessControlEntryTypeElement el : listEl)

相关文章