public class StartTag extends Object implements HtmlElement
| Constructor and Description |
|---|
StartTag(String value,
Map<String,AttrValue> attrList) |
StartTag(String value,
Map<String,AttrValue> attrList,
boolean selfClosing) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,AttrValue> |
getAttributes() |
HtmlElementType |
getType()
Retrieve the associated ElementType
|
String |
getValue()
The String value that best represents what this element is.
|
boolean |
getVoidTag()
Whether this element contains Attributes
|
boolean |
supportsAttributes()
Must be defined as true to allow default methods to work correctly, this
method and the getAttributes method are used together to implement attribute
support in an element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, containsAttribute, getAttributeValue, hasAttributes, setAttributepublic HtmlElementType getType()
HtmlElementgetType in interface HtmlElementpublic String getValue()
HtmlElementgetValue in interface HtmlElementpublic boolean supportsAttributes()
HtmlElementsupportsAttributes in interface HtmlElementpublic boolean getVoidTag()
HtmlElementgetVoidTag in interface HtmlElementpublic Map<String,AttrValue> getAttributes()
getAttributes in interface HtmlElementCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.