public interface HTMLNode extends HTMLElement
Modifier and Type | Interface and Description |
---|---|
static class |
HTMLNode.Default
The node used for all allowed html tags.
|
static class |
HTMLNode.Empty
The empty node, used for not allowed html tags.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add an attribute to the HTML node.
|
void |
addChild(HTMLElement child)
Add a child to the HTML node.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Return the attributes of the HTML node.
|
java.util.List<HTMLElement> |
getChildren()
Return the chidren elements, which can be children nodes or HTML character content.
|
java.lang.String |
getName()
Return the Node name.
|
boolean |
hasChildren()
Return true if the HTML node has children, which can be children nodes or HTML character content.
|
java.lang.String getName()
boolean hasChildren()
void addChild(HTMLElement child)
child
- the child, which can be a child node or HTML character contentvoid addAttribute(java.lang.String name, java.lang.String value)
name
- the attribute namevalue
- the attribute valuejava.util.List<HTMLElement> getChildren()
java.util.Map<java.lang.String,java.lang.String> getAttributes()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence