public class IgnoredHtmlElement extends Object
Constructor and Description |
---|
IgnoredHtmlElement(String tagName)
Create a new IgnoredHtmlElement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAttribute(String attributeName)
Adds a single to the list of allowed attributes.
|
void |
addAttributes(String... attributes)
Adds one or more attributes to the list of allowed attributes.
|
static IgnoredHtmlElement |
create(String tagName,
String... attributes)
Utility method to quickly create a new element.
|
boolean |
equals(Object o) |
Set<String> |
getAttributes()
Gets all the attributes that should be left on this tag.
|
String |
getTagName()
Returns the tagname for this object.
|
int |
hashCode() |
public IgnoredHtmlElement(String tagName)
tagName
- The tag name, such as DIV
, case-insensitive.public static IgnoredHtmlElement create(String tagName, String... attributes)
tagName
- The elements tag name.attributes
- Zero or more attributes that should be enabled on this tag.public String getTagName()
public Set<String> getAttributes()
public boolean addAttribute(String attributeName)
attributeName
- The name of the attribute to allow.public void addAttributes(String... attributes)
attributes
- The attribute names that are to be allowed.Copyright © 2017. All rights reserved.