|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HtmlParser.Mode>
com.google.streamhtmlparser.HtmlParser.Mode
public static enum HtmlParser.Mode
The Parser Mode requested for parsing a given template. Currently we support:
HTML
for HTML templates.
JS
for javascript templates.
CSS
for Cascading Style-Sheets templates.
HTML_IN_TAG
for HTML templates that consist only of
HTML attribute name and value pairs. This is typically the case for
a template that is being included from a parent template where the
parent template contains the start and the closing of the HTML tag.
This is a special mode, for standard HTML templates please use
HTML
.
An example of such as template is:
class="someClass" target="_blank"
Which could be included from a parent template that contains an anchor tag, say:
<a href="/bla" ["INCLUDED_TEMPLATE"]>
Enum Constant Summary | |
---|---|
CSS
|
|
HTML
|
|
HTML_IN_TAG
|
|
JS
|
Method Summary | |
---|---|
static HtmlParser.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HtmlParser.Mode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HtmlParser.Mode HTML
public static final HtmlParser.Mode JS
public static final HtmlParser.Mode CSS
public static final HtmlParser.Mode HTML_IN_TAG
Method Detail |
---|
public static HtmlParser.Mode[] values()
for (HtmlParser.Mode c : HtmlParser.Mode.values()) System.out.println(c);
public static HtmlParser.Mode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |