Enum Class Role

java.lang.Object
java.lang.Enum<Role>
org.jboss.elemento.Role
All Implemented Interfaces:
Serializable, Comparable<Role>, Constable

public enum Role extends Enum<Role>
Roles as recommended by the MDN. This is a subset of all possible roles defined by the W3C.
  • Enum Constant Details

    • alert

      public static final Role alert
    • alertdialog

      public static final Role alertdialog
    • combobox

      public static final Role combobox
    • dialog

      public static final Role dialog
    • feed

      public static final Role feed
    • log

      public static final Role log
    • marquee

      public static final Role marquee
    • math

      public static final Role math
    • none

      public static final Role none
    • note

      public static final Role note
    • presentation

      public static final Role presentation
    • scrollbar

      public static final Role scrollbar
    • separator

      public static final Role separator
    • slider

      public static final Role slider
    • spinbutton

      public static final Role spinbutton
    • status

      public static final Role status
    • switch_

      public static final Role switch_
    • tab

      public static final Role tab
    • tablist

      public static final Role tablist
    • tabpanel

      public static final Role tabpanel
    • timer

      public static final Role timer
    • toolbar

      public static final Role toolbar
    • tooltip

      public static final Role tooltip
    • tree

      public static final Role tree
    • treegrid

      public static final Role treegrid
    • treeitem

      public static final Role treeitem
  • Field Details

    • name

      public final String name
  • Method Details

    • values

      public static Role[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Role valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null