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, wait
accept, containsAttribute, getAttributeValue, hasAttributes, setAttribute
public HtmlElementType getType()
HtmlElement
getType
in interface HtmlElement
public String getValue()
HtmlElement
getValue
in interface HtmlElement
public boolean supportsAttributes()
HtmlElement
supportsAttributes
in interface HtmlElement
public boolean getVoidTag()
HtmlElement
getVoidTag
in interface HtmlElement
public Map<String,AttrValue> getAttributes()
getAttributes
in interface HtmlElement
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.