public static enum MarkupBuilder.TagClosingPolicy extends Enum<MarkupBuilder.TagClosingPolicy>
Enum Constant and Description |
---|
NORMAL
The tag can either be closed with a matching closing tag
or self closing.
|
PAIR
The tag is always closed with a matching closing tag
regardless if there is no child tag or text.
|
SELF
The tag is always a self closing tag.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlwaysSelfClosing() |
boolean |
isPairClosing() |
boolean |
isSelfClosing() |
static MarkupBuilder.TagClosingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MarkupBuilder.TagClosingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MarkupBuilder.TagClosingPolicy NORMAL
<tag/>
</tag>
self closing
tags a NORMAL
tag must be explicitly closed.public static final MarkupBuilder.TagClosingPolicy SELF
<tag/>
starting the next tag
:
start("self",TagClosingPolicy.SELF).start("next");Result:
<self/> <next> ...
public static final MarkupBuilder.TagClosingPolicy PAIR
<tag/>
public static MarkupBuilder.TagClosingPolicy[] values()
for (MarkupBuilder.TagClosingPolicy c : MarkupBuilder.TagClosingPolicy.values()) System.out.println(c);
public static MarkupBuilder.TagClosingPolicy 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 final boolean isAlwaysSelfClosing()
public final boolean isSelfClosing()
true
if the tag is allowed to self close.public final boolean isPairClosing()
true
if the tag is allowed to close with a matching end tag (</tag>
).Copyright © 2010-2013 JATL. All Rights Reserved.