public class HtmlEmptyElement extends Object
Constructor and Description |
---|
HtmlEmptyElement(String name)
Constructs this empty HTML element from the supplied (element) name.
|
HtmlEmptyElement(String name,
HtmlAttribute... attributes)
Constructs this empty HTML element from the supplied (element) name and attributes.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of this HTML element.
|
String |
toHtml()
Creates an HTML representation of this HTML element.
|
String |
toString()
Creates a String representation if this HTML element.
|
public HtmlEmptyElement(String name)
name
- Name of this HTML element.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.public HtmlEmptyElement(String name, HtmlAttribute... attributes)
name
- Name of this HTML element.attributes
- The HTML attributes of this HTML element.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.public String getName()
public String toHtml()
Copyright © 2008–2018. All rights reserved.