public enum WhitespaceProcessingMode extends java.lang.Enum<WhitespaceProcessingMode> implements DitaCompareDisplayable
Enum Constant and Description |
---|
AUTOMATIC
Chooses the most appropriate mode based on other parameter settings.
|
CDATA_HEURISTIC
Ignore differences in whitespace, unless they occur within a CDATA section (or are explicitly preserved).
|
IGNORE
Ignore differences in whitespace that is not explicitly preserved.
|
KEEP_A
Similar to 'ignore' except that 'A' document's whitespace is kept (instead of the 'B' document's whitespace).
|
NORMALIZE
Normalize whitespace in inputs before comparison.
|
SHOW
Display the differences in whitespace where possible.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayDescription()
Returns the user friendly String description of the WhitespaceProcessingMode.
|
java.lang.String |
getDisplayName()
Returns the user friendly String name of the WhitespaceProcessingMode.
|
static WhitespaceProcessingMode |
getWhitespaceProcessingMode(java.lang.String value)
Returns a WhitespaceProcessingMode object from the supplied String value if appropriate.
|
static WhitespaceProcessingMode |
parseValue(java.lang.String value)
Returns a WhitespaceProcessingMode object from the supplied String value if appropriate.
|
java.lang.String |
toString()
Returns a String representation of WhitespaceProcessingMode.
|
static WhitespaceProcessingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WhitespaceProcessingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhitespaceProcessingMode SHOW
public static final WhitespaceProcessingMode CDATA_HEURISTIC
public static final WhitespaceProcessingMode IGNORE
public static final WhitespaceProcessingMode KEEP_A
public static final WhitespaceProcessingMode NORMALIZE
public static final WhitespaceProcessingMode AUTOMATIC
public static WhitespaceProcessingMode[] values()
for (WhitespaceProcessingMode c : WhitespaceProcessingMode.values()) System.out.println(c);
public static WhitespaceProcessingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayName()
Returns the user friendly String name of the WhitespaceProcessingMode.
getDisplayName
in interface DitaCompareDisplayable
public java.lang.String getDisplayDescription()
Returns the user friendly String description of the WhitespaceProcessingMode.
getDisplayDescription
in interface DitaCompareDisplayable
public java.lang.String toString()
Returns a String representation of WhitespaceProcessingMode.
toString
in class java.lang.Enum<WhitespaceProcessingMode>
public static WhitespaceProcessingMode getWhitespaceProcessingMode(java.lang.String value)
Returns a WhitespaceProcessingMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a WhitespaceProcessingMode valuepublic static WhitespaceProcessingMode parseValue(java.lang.String value) throws java.lang.IllegalArgumentException
Returns a WhitespaceProcessingMode object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a WhitespaceProcessingMode valuejava.lang.IllegalArgumentException
- Whenever the provided string does not represent one of this enum'e enumerated values.Copyright © 2001-2016 DeltaXML Ltd. All Rights Reserved.