Package com.helger.html
Enum EHTMLRoleType
- java.lang.Object
-
- java.lang.Enum<EHTMLRoleType>
-
- com.helger.html.EHTMLRoleType
-
- All Implemented Interfaces:
Serializable,Comparable<EHTMLRoleType>
public enum EHTMLRoleType extends Enum<EHTMLRoleType>
Enumeration with the classification of the HTML roles. Source: http://www.w3.org/TR/wai-aria/roles- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSTRACTAre used for the ontology.DOCUMENT_STRUCTUREDescribe structures that organize content in a page.LANDMARKAre regions of the page intended as navigational landmarks.WIDGETAct as standalone user interface widgets or as part of larger, composite widgets.WIDGET_CONTAINERAct as composite user interface widgets.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EHTMLRoleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EHTMLRoleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSTRACT
public static final EHTMLRoleType ABSTRACT
Are used for the ontology. Authors MUST NOT not use abstract roles in content.
-
WIDGET
public static final EHTMLRoleType WIDGET
Act as standalone user interface widgets or as part of larger, composite widgets.
-
WIDGET_CONTAINER
public static final EHTMLRoleType WIDGET_CONTAINER
Act as composite user interface widgets. These roles typically act as containers that manage other, contained widgets.
-
DOCUMENT_STRUCTURE
public static final EHTMLRoleType DOCUMENT_STRUCTURE
Describe structures that organize content in a page. Document structures are not usually interactive.
-
LANDMARK
public static final EHTMLRoleType LANDMARK
Are regions of the page intended as navigational landmarks.
-
-
Method Detail
-
values
public static EHTMLRoleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EHTMLRoleType c : EHTMLRoleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHTMLRoleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-