public static enum Context.ElementType extends Enum<Context.ElementType>
| Enum Constant and Description |
|---|
MEDIA
An image element, so that we can process the src attribute specially.
|
NONE
No element.
|
NORMAL
An element whose content is normal mixed PCDATA and child elements.
|
SCRIPT
A script element whose content is raw JavaScript.
|
STYLE
A style element whose content is raw CSS.
|
TEXTAREA
A textarea element whose content is encoded HTML but which cannot contain elements.
|
TITLE
A title element whose content is encoded HTML but which cannot contain elements.
|
XMP
An XMP element whose content is raw CDATA.
|
| Modifier and Type | Method and Description |
|---|---|
static Context.ElementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Context.ElementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context.ElementType NONE
public static final Context.ElementType SCRIPT
public static final Context.ElementType STYLE
public static final Context.ElementType TEXTAREA
public static final Context.ElementType TITLE
public static final Context.ElementType XMP
public static final Context.ElementType MEDIA
public static final Context.ElementType NORMAL
public static Context.ElementType[] values()
for (Context.ElementType c : Context.ElementType.values()) System.out.println(c);
public static Context.ElementType 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 null