|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Element | |
---|---|
org.jsoup.nodes | HTML document structure nodes. |
org.jsoup.select | Packages to support the CSS-style element selector. |
Uses of Element in org.jsoup.nodes |
---|
Subclasses of Element in org.jsoup.nodes | |
---|---|
class |
Document
A HTML Document. |
Methods in org.jsoup.nodes that return Element | |
---|---|
Element |
Element.addClass(String className)
Add a class name to this element's class attribute. |
Element |
Element.append(String html)
Add inner HTML to this element. |
Element |
Element.appendChild(Node child)
Add a node to the last child of this element. |
Element |
Element.appendElement(String tagName)
Create a new element by tag name, and add it as the last child. |
Element |
Element.appendText(String text)
Create and append a new TextNode to this element. |
Element |
Element.attr(String attributeKey,
String attributeValue)
Set an attribute value on this element. |
Element |
Document.body()
Accessor to the document's body element. |
Element |
Element.child(int index)
Get a child element of this element, by its 0-based index number. |
Element |
Element.classNames(Set<String> classNames)
Set the element's class attribute to the supplied class names. |
Element |
Document.createElement(String tagName)
Create a new Element, with this document's base uri. |
Element |
Element.empty()
Remove all of the element's child nodes. |
Element |
Element.firstElementSibling()
Gets the first element sibling of this element. |
Element |
Element.getElementById(String id)
Find an element by ID, including or under this element. |
Element |
Document.head()
Accessor to the document's head element. |
Element |
Element.html(String html)
Set this element's inner HTML. |
Element |
Element.lastElementSibling()
Gets the last element sibling of this element |
Element |
Element.nextElementSibling()
Gets the next sibling element of this element. |
Element |
Element.parent()
|
Element |
Element.prepend(String html)
Add inner HTML to this element. |
Element |
Element.prependChild(Node child)
Add a node to the start of this element's children. |
Element |
Element.prependElement(String tagName)
Create a new element by tag name, and add it as the first child. |
Element |
Element.prependText(String text)
Create and prepend a new TextNode to this element. |
Element |
Element.previousElementSibling()
Gets the previous element sibling of this element. |
Element |
Element.removeClass(String className)
Remove a class name from this element's class attribute. |
Element |
Element.text(String text)
Set the text of this element. |
Element |
Document.text(String text)
Set the text of the body of this document. |
Element |
Element.toggleClass(String className)
Toggle a class name on this element's class attribute: if present, remove it; otherwise add it. |
Element |
Element.wrap(String html)
Wrap the supplied HTML around this element. |
Methods in org.jsoup.nodes with parameters of type Element | |
---|---|
abstract boolean |
Evaluator.matches(Element element)
Test if the element meets the evaluator's requirements. |
Uses of Element in org.jsoup.select |
---|
Methods in org.jsoup.select that return Element | |
---|---|
Element |
Elements.first()
Get the first matched element. |
Element |
Elements.get(int index)
|
Element |
Elements.last()
Get the last matched element. |
Element |
Elements.remove(int index)
|
Element |
Elements.set(int index,
Element element)
|
Methods in org.jsoup.select that return types with arguments of type Element | |
---|---|
Iterator<Element> |
Elements.iterator()
|
ListIterator<Element> |
Elements.listIterator()
|
ListIterator<Element> |
Elements.listIterator(int index)
|
List<Element> |
Elements.subList(int fromIndex,
int toIndex)
|
Methods in org.jsoup.select with parameters of type Element | |
---|---|
boolean |
Elements.add(Element element)
|
void |
Elements.add(int index,
Element element)
|
static Elements |
Collector.collect(Evaluator eval,
Element root)
Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator. |
static Elements |
Selector.select(String query,
Element root)
Find elements matching selector. |
Element |
Elements.set(int index,
Element element)
|
Method parameters in org.jsoup.select with type arguments of type Element | |
---|---|
boolean |
Elements.addAll(Collection<? extends Element> c)
|
boolean |
Elements.addAll(int index,
Collection<? extends Element> c)
|
static Elements |
Selector.select(String query,
Iterable<Element> roots)
Find elements matching selector. |
Constructors in org.jsoup.select with parameters of type Element | |
---|---|
Elements(Element... elements)
|
Constructor parameters in org.jsoup.select with type arguments of type Element | |
---|---|
Elements(Collection<Element> elements)
|
|
Elements(List<Element> elements)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |