Example usage for Java org.jsoup.nodes Node fields, constructors, methods, implement or subclass
The text is from its open source code.
Node | parentNode |
int | siblingIndex |
String | attr(String attributeKey) Get an attribute's value by its key. |
Node | attr(String attributeKey, String attributeValue) Set an attribute (key=value). |
Attributes | attributes() Get all of the element's attributes. |
String | baseUri() Get the base URI of this node. |
Node | before(String html) Insert the specified HTML into the DOM before this node (i.e. |
Node | before(Node node) Insert the specified node into the DOM before this node (i.e. |
Node | childNode(int index) Get a child node by its 0-based index. |
List | childNodes() Get this node's children. |
int | childNodeSize() Get the number of child nodes that this node holds. |
boolean | equals(Object o) Check if this node is the same instance of another (object identity test). |
Class> | getClass() Returns the runtime class of this Object . |
boolean | hasAttr(String attributeKey) Test if this element has an attribute. |
int | hashCode() Returns a hash code value for the object. |
Node | nextSibling() Get this node's next sibling. |
String | nodeName() Get the node name of this node. |
String | outerHtml() Get the outer HTML of this node. |
Document | ownerDocument() Gets the Document associated with this Node. |
Node | parent() Gets this node's parent node. |
void | remove() Remove (delete) this node from the DOM tree. |
Node | removeAttr(String attributeKey) Remove an attribute from this element. |
void | replaceWith(Node in) Replace this node in the DOM with the supplied node. |
List | siblingNodes() Retrieves this node's sibling nodes. |
String | toString() Gets this node's outer HTML. |
Node | traverse(NodeVisitor nodeVisitor) Perform a depth-first traversal through this node and its descendants. |