public class Elements extends Element implements Iterable<Element>
COMMENT_TYPE, DOCUMENT_TYPE, ELEMENT_TYPE, TEXT_TYPE
Constructor and Description |
---|
Elements()
Creates an empty Elements object.
|
Elements(List<Element> childElements)
Creates a new Elements object who's immediate child elements are those in the specified list.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Element> |
iterator()
returns an iterator over the child Elements.
|
int |
size()
Returns the number of child Elements.
|
List<Element> |
toList()
Returns the child Elements as a List.
|
addChild, addChildren, erase, findAttributeValues, findEach, findEach, findEvery, findFirst, findFirst, findNearestAncestor, getAt, getAtString, getAttributeNames, getChildElements, getChildNodes, getChildText, getChildText, getComment, getEach, getEach, getElement, getFirst, getFirst, getInlineStyle, getInlineStyles, getName, getNameOC, getRoot, getSiblingIndex, getTextContent, getTextContent, getTextContent, hasAttribute, hasKeyword, innerHTML, innerHTML, innerHTML, innerText, innerText, innerText, innerXML, innerXML, innerXML, nextSiblingElement, outerHTML, outerHTML, outerXML, outerXML, removeAttribute, removeAttributes, removeChild, removeChildren, saveAs, saveAsXML, setAttribute, toString, toXMLString
delete, findNearestCommonAncestor, getParent, getType, isAfter, isBefore, isBetween, isBetween, nextNode, nextNodeSibling, nextNonDescendantNode, previousNode, previousNodeSibling, typeToString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator