Enum MarkupContext
- All Implemented Interfaces:
Serializable
,Comparable<MarkupContext>
Indicates what type of content is being rendered.
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetName()
static MarkupContext
Returns the render context with the given name.static MarkupContext
Returns the enum constant of this type with the specified name.static MarkupContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTML
-
TEXT
-
ELEMENT_NAME
-
ATTRIBUTE_NAME
-
ATTRIBUTE
-
URI
-
SCRIPT_TOKEN
-
SCRIPT_STRING
-
SCRIPT_COMMENT
-
SCRIPT_REGEXP
-
STYLE_TOKEN
-
STYLE_STRING
-
STYLE_COMMENT
-
COMMENT
-
NUMBER
-
UNSAFE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getName
-
lookup
Returns the render context with the given name.- Parameters:
name
- the name of the render context- Returns:
- the rendering context value or
null
if the name matches no value
-