public static enum XMLFormatter.Builder.AttributeWrap extends Enum<XMLFormatter.Builder.AttributeWrap>
Enum Constant and Description |
---|
ALL
Wrap ALL attributes (one per line).
|
AT_MAX
Wrap attributes only when
XMLFormatter.Builder.maxLineLength(int)
is reached (respecting XMLFormatter.Builder.minTextLength(int) ),
keeping as many attributes as possible on each line. |
AT_MAX_ALL
Wrap attributes only when
XMLFormatter.Builder.maxLineLength(int)
is reached, but putting them all on their own line. |
NONE
Never wrap attributes
(ignoring
XMLFormatter.Builder.maxLineLength(int) ). |
Modifier and Type | Method and Description |
---|---|
static XMLFormatter.Builder.AttributeWrap |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XMLFormatter.Builder.AttributeWrap[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XMLFormatter.Builder.AttributeWrap ALL
public static final XMLFormatter.Builder.AttributeWrap NONE
XMLFormatter.Builder.maxLineLength(int)
).public static final XMLFormatter.Builder.AttributeWrap AT_MAX
XMLFormatter.Builder.maxLineLength(int)
is reached (respecting XMLFormatter.Builder.minTextLength(int)
),
keeping as many attributes as possible on each line.public static final XMLFormatter.Builder.AttributeWrap AT_MAX_ALL
XMLFormatter.Builder.maxLineLength(int)
is reached, but putting them all on their own line.public static XMLFormatter.Builder.AttributeWrap[] values()
for (XMLFormatter.Builder.AttributeWrap c : XMLFormatter.Builder.AttributeWrap.values()) System.out.println(c);
public static XMLFormatter.Builder.AttributeWrap 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 © 2008–2023 Norconex Inc.. All rights reserved.