|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.overzealous.remark.IgnoredHtmlElement
public class IgnoredHtmlElement
Provides a standard class to note which HTML elements should be left in the final output.
Constructor Summary | |
---|---|
IgnoredHtmlElement(String tagName)
Create a new IgnoredHtmlElement. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnoredHtmlElement(String tagName)
tagName
- The tag name, such as DIV
, case-insensitive.Method Detail |
---|
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.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |