java.lang.Object
com.aoapps.html.any.Attributes.Integer
- Enclosing class:
Attributes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Element<?,
?, E>>
Eattribute
(E element, String name, int value, FunctionE<? super Integer, ValidationResult, Ex> validator) static <E extends Element<?,
?, E>>
Eattribute
(E element, String name, Integer value, FunctionE<? super Integer, ValidationResult, Ex> validator)
-
Method Details
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex extends Throwable> (E element, String name, int value, FunctionE<? super Integer, ValidationResult, throws IOException, ExEx> validator) - Type Parameters:
E
- This element type- Parameters:
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
Ex
-
attribute
public static <E extends Element<?,?, E attributeE>> (E element, String name, int value) throws IOException - Type Parameters:
E
- This element type- Throws:
IOException
-
attribute
public static <E extends Element<?,?, E attributeE>, Ex extends Throwable> (E element, String name, Integer value, FunctionE<? super Integer, ValidationResult, throws IOException, ExEx> validator) - Type Parameters:
E
- This element type- Parameters:
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
Ex
-
attribute
public static <E extends Element<?,?, E attributeE>> (E element, String name, Integer value) throws IOException - Type Parameters:
E
- This element type- Throws:
IOException
-