public static class HTMLNode.Empty extends java.lang.Object implements HTMLNode
HTMLNode.Default, HTMLNode.Empty| 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.
|
static HTMLNode.Empty |
getInstance() |
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.
|
public static HTMLNode.Empty getInstance()
public java.lang.String getName()
HTMLNodepublic boolean hasChildren()
HTMLNodehasChildren in interface HTMLNodepublic void addChild(HTMLElement child)
HTMLNodepublic void addAttribute(java.lang.String name,
java.lang.String value)
HTMLNodeaddAttribute in interface HTMLNodename - the attribute namevalue - the attribute valuepublic java.util.List<HTMLElement> getChildren()
HTMLNodegetChildren in interface HTMLNodepublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
HTMLNodegetAttributes in interface HTMLNodeCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence