Class Attributes.Integer

java.lang.Object
com.aoapps.html.any.Attributes.Integer
Enclosing class:
Attributes

public static final class Attributes.Integer extends Object
See Also:
  • Method Details

    • attribute

      public static <E extends Element<?, ?, E>, Ex extends Throwable> E attribute(E element, String name, int value, FunctionE<? super Integer,ValidationResult,Ex> validator) throws IOException, Ex
      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>> E attribute(E element, String name, int value) throws IOException
      Type Parameters:
      E - This element type
      Throws:
      IOException
    • attribute

      public static <E extends Element<?, ?, E>, Ex extends Throwable> E attribute(E element, String name, Integer value, FunctionE<? super Integer,ValidationResult,Ex> validator) throws IOException, Ex
      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>> E attribute(E element, String name, Integer value) throws IOException
      Type Parameters:
      E - This element type
      Throws:
      IOException