java.lang.Object
com.aoapps.html.any.Attributes.String
- Enclosing class:
Attributes
Non-streamable text attributes (expected to be short, relatively fixed values).
-
Method Summary
Modifier and TypeMethodDescriptionattribute
(E element, String name, MarkupType markupType, String value, FunctionE<? super String, ? extends String, Ex> normalizer) attribute
(E element, String name, MarkupType markupType, String value, FunctionE<? super String, ? extends String, Ex1> normalizer, FunctionE<? super String, ValidationResult, Ex2> validator)
-
Method Details
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex1 extends Throwable, Ex2 extends Throwable> (E element, String name, MarkupType markupType, String value, FunctionE<? super String, ? extends String, throws IOException, Ex1, Ex2Ex1> normalizer, FunctionE<? super String, ValidationResult, Ex2> validator) - Type Parameters:
E
- This element type- Parameters:
value
- If isAttributes.NO_VALUE
(by identity), will write empty attribute.validator
- Optional validator, which gets the attribute value only when attribute will be actually written. Will not be called when the attribute will be skipped.- Throws:
IOException
Ex1
Ex2
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex extends Throwable> (E element, String name, MarkupType markupType, String value, FunctionE<? super String, ? extends String, throws IOException, ExEx> normalizer) - Type Parameters:
E
- This element type- Parameters:
value
- If isAttributes.NO_VALUE
(by identity), will write empty attribute.- Throws:
IOException
Ex
-