java.lang.Object
com.aoapps.html.any.Attributes.Text
- Enclosing class:
Attributes
Streamable text attributes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionattribute(E element, String name, MarkupType markupType, Object[] values, String separator, FunctionE<? super Object, ? extends Object, Ex> normalizer, MediaEncoder encoder) attribute(E element, String name, MarkupType markupType, Object[] values, String separator, FunctionE<? super Object, ? extends Object, Ex1> normalizer, FunctionE<? super Object, ValidationResult, Ex2> validator, MediaEncoder encoder) attribute(E element, String name, MarkupType markupType, Object value, FunctionE<? super Object, ? extends Object, Ex> normalizer, MediaEncoder encoder) attribute(E element, String name, MarkupType markupType, Object value, FunctionE<? super Object, ? extends Object, Ex1> normalizer, FunctionE<? super Object, ValidationResult, Ex2> validator, MediaEncoder encoder)
-
Method Details
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex1 extends Throwable, Ex2 extends Throwable> (E element, String name, MarkupType markupType, Object value, FunctionE<? super Object, ? extends Object, throws IOException, Ex1, Ex2Ex1> normalizer, FunctionE<? super Object, ValidationResult, Ex2> validator, MediaEncoder encoder) - Type Parameters:
E- This element type- Parameters:
value- The attribute value,Attributes.NO_VALUE(by identity, not value) for an empty attribute,nullfor no 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:
IOExceptionEx1Ex2
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex extends Throwable> (E element, String name, MarkupType markupType, Object value, FunctionE<? super Object, ? extends Object, throws IOException, ExEx> normalizer, MediaEncoder encoder) - Type Parameters:
E- This element type- Parameters:
value- The attribute value,Attributes.NO_VALUE(by identity, not value) for an empty attribute,nullfor no attribute.- Throws:
IOExceptionEx
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex1 extends Throwable, Ex2 extends Throwable> (E element, String name, MarkupType markupType, Object[] values, String separator, FunctionE<? super Object, ? extends Object, throws IOException, Ex1, Ex2Ex1> normalizer, FunctionE<? super Object, ValidationResult, Ex2> validator, MediaEncoder encoder) - Type Parameters:
E- This element type- Parameters:
values- The attribute values,Attributes.NO_VALUE(by identity, not value) for an empty attribute,nullfor no attribute.separator- The separator to use between non-null values. Written directly (not through the encoder). Not written when a value isAttributes.NO_VALUE.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:
IOExceptionEx1Ex2
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex extends Throwable> (E element, String name, MarkupType markupType, Object[] values, String separator, FunctionE<? super Object, ? extends Object, throws IOException, ExEx> normalizer, MediaEncoder encoder) - Type Parameters:
E- This element type- Parameters:
values- The attribute values,Attributes.NO_VALUE(by identity, not value) for an empty attribute,nullfor no attribute.separator- The separator to use between non-null values. Written directly (not through the encoder). Not written when a value isAttributes.NO_VALUE.- Throws:
IOExceptionEx
-
