public enum WhiteSpace extends Enum<WhiteSpace>
| Enum Constant and Description |
|---|
collapse
After the processing implied by replace, contiguous sequences of #x20's
are collapsed to a single #x20, and leading and trailing #x20's are
removed.
|
preserve
No normalization is done, the value is not changed (this is the behavior
required by [XML 1.0 (Second Edition)] for element content)
|
replace
All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return)
are replaced with #x20 (space)
|
| Modifier and Type | Method and Description |
|---|---|
static WhiteSpace |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WhiteSpace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhiteSpace preserve
public static final WhiteSpace replace
public static final WhiteSpace collapse
public static WhiteSpace[] values()
for (WhiteSpace c : WhiteSpace.values()) System.out.println(c);
public static WhiteSpace 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 © 2018 Siemens AG. All rights reserved.