Class FormInput

java.lang.Object
org.loboevolution.html.dom.input.FormInput

public class FormInput extends Object
The FormInput class contains the state of an HTML form input item.
  • Field Details

    • EMPTY_ARRAY

      public static final FormInput[] EMPTY_ARRAY
      The Constant EMPTY_ARRAY.
  • Constructor Details

    • FormInput

      public FormInput(String name, String value)
      Constructs a FormInput with a text value.
      Parameters:
      name - The name of the input.
      value - The value of the input.
    • FormInput

      public FormInput(String name, File[] value)
      Constructs a FormInput with a file value.
      Parameters:
      name - The name of the input.
      value - The value of the input.
  • Method Details

    • isText

      public boolean isText()
      Checks if is text.
      Returns:
      true, if is text
    • isFile

      public boolean isFile()
      Checks if is file.
      Returns:
      true, if is file
    • toString

      public String toString()
      Shows a string representation of the FormInput that may be useful in debugging.
      Overrides:
      toString in class Object
      See Also:
      • invalid reference
        #getTextValue()