public static enum HtmlParser.ATTR_TYPE extends Enum<HtmlParser.ATTR_TYPE>
NONE
if the parser is not currently in an attribute.
URI
is for attributes taking a URI such as "href" and "src".
JS
is for attributes taking javascript such as "onclick".
STYLE
is for the "style" attribute.
All other attributes fall under REGULAR
.
Returned by HtmlParser.getAttributeType()
Modifier and Type | Method and Description |
---|---|
static HtmlParser.ATTR_TYPE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HtmlParser.ATTR_TYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HtmlParser.ATTR_TYPE NONE
public static final HtmlParser.ATTR_TYPE REGULAR
public static final HtmlParser.ATTR_TYPE URI
public static final HtmlParser.ATTR_TYPE JS
public static final HtmlParser.ATTR_TYPE STYLE
public static HtmlParser.ATTR_TYPE[] values()
for (HtmlParser.ATTR_TYPE c : HtmlParser.ATTR_TYPE.values()) System.out.println(c);
public static HtmlParser.ATTR_TYPE 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 nullCopyright © 2010–2017 Google. All rights reserved.