public static enum HtmlParser.Mode extends Enum<HtmlParser.Mode>
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 and Description |
---|
CSS |
HTML |
HTML_IN_TAG |
JS |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2010–2014 Google. All rights reserved.