@ProviderType public interface HtmlElement
Modifier and Type | Method and Description |
---|---|
default <T> T |
accept(org.apache.sling.commons.html.util.Visitor<T> visitor)
Accepts a Visitor to visit
|
default boolean |
containsAttribute(String attrName) |
Map<String,AttrValue> |
getAttributes() |
default String |
getAttributeValue(String name) |
HtmlElementType |
getType()
Retrieve the associated ElementType
|
String |
getValue()
The String value that best represents what this element is.
|
default boolean |
getVoidTag()
Whether this element contains Attributes
|
default boolean |
hasAttributes() |
default void |
setAttribute(String name,
String value) |
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.
|
HtmlElementType getType()
boolean supportsAttributes()
String getValue()
default <T> T accept(org.apache.sling.commons.html.util.Visitor<T> visitor)
visitor
- default boolean getVoidTag()
default boolean hasAttributes()
default boolean containsAttribute(String attrName)
Copyright © 2010 - 2020 Adobe. All Rights Reserved