本文整理了Java中org.apache.abdera.model.Element.getElements()
方法的一些代码示例,展示了Element.getElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getElements()
方法的具体详情如下:
包路径:org.apache.abdera.model.Element
类名称:Element
方法名:getElements
[英]Return a listing of this elements child elements
[中]返回此元素的列表子元素
代码示例来源:origin: org.apache.abdera/abdera-core
public <T extends Element> List<T> getElements() {
return internal.getElements();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera
public <T extends Element> List<T> getElements() {
return internal.getElements();
}
代码示例来源:origin: stackoverflow.com
private int counter(List<Element> items) {
int count = 0;
for (Element item: items) {
count ++; // for the item counting
if (item.holdsElements) { // for inner elements
count = count + counter(item.getElements());
}
}
return count;
}
代码示例来源:origin: com.atlassian.streams/streams-testing
@Override
protected boolean matchesSafely(Element element, Description mismatchDescription)
{
Collection<Element> linkElements = filter(element.getElements(), linkPredicate);
if (linkElements.size() != 0)
{
for (Element linkElement : linkElements)
{
Link link = (Link) linkElement;
if (!matcher.matches(link))
{
mismatchDescription.appendText("link ");
matcher.describeMismatch(link, mismatchDescription);
return false;
}
}
}
return true;
}
代码示例来源:origin: org.xcmis/xcmis-restatom
RequestContext request = initRequestContext(httpRequest);
Document<?> doc = request.getDocument();
List<AccessControlEntryTypeElement> listEl = doc.getRoot().getElements();
List<AccessControlEntry> listACE = new ArrayList<AccessControlEntry>();
for (AccessControlEntryTypeElement el : listEl)
内容来源于网络,如有侵权,请联系作者删除!