All Implemented Interfaces:
TagBase, InputAttributable, Serializable, Cloneable

public class Accept extends AbstractAttribute implements InputAttributable
accept attribute for the element.

 If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored. The value must be a comma-separated list of unique content type specifiers:
 A file extension starting with the STOP character (U+002E). (E.g.: ".jpg,.png,.doc")
 A valid MIME type with no extensions
 audio/* representing sound files (HTML5)
 video/* representing video files (HTML5)
 image/* representing image files (HTML5)

 
Since:
1.0.0
See Also:
  • Constructor Details

    • Accept

      public Accept(String value)
      Parameters:
      value - the value for the attribute
      Since:
      1.0.0
  • Method Details

    • setValue

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

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • getValue

      public String 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