Class MinLength

  • All Implemented Interfaces:
    TagBase, InputAttributable, java.io.Serializable, java.lang.Cloneable


    public class MinLength
    extends AbstractAttribute
    implements InputAttributable
    minlength attribute for the element.
    minlength attribute for input element :-
    If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter; for other control types, it is ignored.

    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MinLength

        public MinLength​(java.lang.String value)
        Parameters:
        value - should be number
        Since:
        1.1.4
      • MinLength

        public MinLength​(int value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(int value)
        sets the value for this attribute
        Parameters:
        value - the value for the attribute.
        Since:
        1.0.0
      • getValue

        public int getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0