| Constructor and Description |
|---|
HTMLTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addAttribute(java.lang.String key,
java.lang.String value) |
java.lang.String |
getAttribute(java.lang.String name)
Gets the attribute with the given name
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the attribute names in this tag
|
java.util.List<java.lang.String> |
getAttributes(java.lang.String name)
Gets the attributes with the given name
|
boolean |
hasAttribute(java.lang.String name)
Checks if the given attribute is present (may still have a null value)
|
@Nullable public java.lang.String getAttribute(@NotNull java.lang.String name)
name - The name of the attributejava.lang.IllegalStateException - If the attribute wasn't present@NotNull public java.util.List<java.lang.String> getAttributes(@NotNull java.lang.String name)
name - The name of the attributesjava.lang.IllegalStateException - If the attribute wasn't presentpublic boolean hasAttribute(@NotNull java.lang.String name)
name - The name of the attribute@NotNull public java.util.Set<java.lang.String> getAttributeNames()