Enum MarkupContext
- All Implemented Interfaces:
Serializable
,Comparable<MarkupContext>
,java.lang.constant.Constable
Indicates what type of content is being rendered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum 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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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
-