public enum EndTagStyle extends Enum<EndTagStyle>
MarkupModel, used to define how end tags are handled when the Document in rendered out as a
text stream.| Enum Constant and Description |
|---|
ABBREVIATE
Require an end tag, but abbreviate it if the element has no children.
|
REQUIRE
Require an end tag always.
|
VOID
No end tags for HTML5 compatibility.
|
| Modifier and Type | Method and Description |
|---|---|
static EndTagStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndTagStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndTagStyle REQUIRE
public static final EndTagStyle ABBREVIATE
DefaultMarkupModel forces most tags to use REQUIRE for semi-obscure browser compatibility issues.public static final EndTagStyle VOID
public static EndTagStyle[] values()
for (EndTagStyle c : EndTagStyle.values()) System.out.println(c);
public static EndTagStyle 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 null5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.