public enum MarkupContext extends Enum<MarkupContext>
Enum Constant and Description |
---|
ATTRIBUTE |
ATTRIBUTE_NAME |
COMMENT |
ELEMENT_NAME |
HTML |
NUMBER |
SCRIPT_COMMENT |
SCRIPT_REGEXP |
SCRIPT_STRING |
SCRIPT_TOKEN |
STYLE_COMMENT |
STYLE_STRING |
STYLE_TOKEN |
TEXT |
UNSAFE |
URI |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static MarkupContext |
lookup(String name)
Returns the render context with the given name.
|
static MarkupContext |
valueOf(String name)
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.
|
public static final MarkupContext HTML
public static final MarkupContext TEXT
public static final MarkupContext ELEMENT_NAME
public static final MarkupContext ATTRIBUTE_NAME
public static final MarkupContext ATTRIBUTE
public static final MarkupContext URI
public static final MarkupContext SCRIPT_TOKEN
public static final MarkupContext SCRIPT_STRING
public static final MarkupContext SCRIPT_COMMENT
public static final MarkupContext SCRIPT_REGEXP
public static final MarkupContext STYLE_TOKEN
public static final MarkupContext STYLE_STRING
public static final MarkupContext STYLE_COMMENT
public static final MarkupContext COMMENT
public static final MarkupContext NUMBER
public static final MarkupContext UNSAFE
public static MarkupContext[] values()
for (MarkupContext c : MarkupContext.values()) System.out.println(c);
public static MarkupContext valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public static MarkupContext lookup(String name)
name
- the name of the render contextnull
if the name matches no valueCopyright © 2017 The Apache Software Foundation. All rights reserved.