Package com.inet.html
Interface InetHtmlWriter.AttributeFilter
- Enclosing class:
- InetHtmlWriter
public static interface InetHtmlWriter.AttributeFilter
The attribute filter can modify attribute value on the fly while the document is written. It's much faster than
a modification of the element tree but to existing attributes. It cannot add new attributes.
- Since:
- 1.12
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectfilterAttributeValue(Object elementName, Object key, Object value, AttributeSet elementAttributes, Element element) Returns a certain attribute value
-
Field Details
-
DONT_WRITE
-
-
Method Details
-
filterAttributeValue
default Object filterAttributeValue(Object elementName, Object key, Object value, AttributeSet elementAttributes, Element element) Returns a certain attribute value- Parameters:
elementName- the name of the element, in most cases aHTML.Tag;nullif inside a global style sheet rulekey- the attribute key, in most cases a CSSCSS.Attributeor an HTMLHTML.Attributevalue- the value of the attribute as determined by theelementAttributes- the original attribute set containing this attribute, can be used to check for further styles on the same element, may benull; A modification of this set is no supported!element- the element which has this attribute, may benullif in the global style sheet- Returns:
- the new attribute value; return
DONT_WRITEto skip this attribute in the output
-