|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Format.TextMode> org.cdmckay.coffeedom.output.Format.TextMode
public static enum Format.TextMode
Class to signify how text should be handled on output. The following table provides details.
Text Mode | Resulting behavior. |
---|---|
PRESERVE (Default) | All content is printed in the format it was created, no whitespace or line separators are are added or removed. |
TRIM_FULL_WHITE | Content between tags consisting of all whitespace is not printed. If the content contains even one non-whitespace character, it is printed verbatim, whitespace and all. |
TRIM | Same as TrimAllWhite, plus leading/trailing whitespace are trimmed. |
NORMALIZE | Same as TextTrim, plus addition interior whitespace is compressed to a single space. |
Enum Constant Summary | |
---|---|
NORMALIZE
Mode for text normalization (left and right trim plus internal whitespace is normalized to a single space. |
|
PRESERVE
Mode for literal text preservation. |
|
TRIM
Mode for text trimming (left and right trim). |
|
TRIM_FULL_WHITE
Mode for text trimming of content consisting of nothing but whitespace but otherwise not changing output. |
Method Summary | |
---|---|
static Format.TextMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Format.TextMode[] |
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 Format.TextMode PRESERVE
public static final Format.TextMode TRIM
public static final Format.TextMode NORMALIZE
Element.getTextNormalize()
public static final Format.TextMode TRIM_FULL_WHITE
Method Detail |
---|
public static Format.TextMode[] values()
for (Format.TextMode c : Format.TextMode.values()) System.out.println(c);
public static Format.TextMode 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 |