Package com.deltaxml.docbook.config
Enum Class WhitespaceProcessingMode
- All Implemented Interfaces:
com.deltaxml.docbook.DocBookCompareDisplayable,Serializable,Comparable<WhitespaceProcessingMode>,Constable
public enum WhitespaceProcessingMode
extends Enum<WhitespaceProcessingMode>
implements com.deltaxml.docbook.DocBookCompareDisplayable
Enumeration representing the possible values for the whitespace-processing-mode parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChooses the most appropriate mode based on other parameter settings.Ignore differences in whitespace, unless they occur within a CDATA section (or are explicitly preserved).Ignore differences in whitespace that is not explicitly preserved.Similar to 'ignore' except that 'A' document's whitespace is kept (instead of the 'B' document's whitespace).Normalize whitespace in inputs before comparison.Display the differences in whitespace where possible. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user friendly String description of the WhitespaceProcessingMode.Returns the user friendly String name of the WhitespaceProcessingMode.toString()static WhitespaceProcessingModeReturns the enum constant of this class with the specified name.static WhitespaceProcessingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
SHOW
Display the differences in whitespace where possible. -
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. -
AUTOMATIC
Chooses the most appropriate mode based on other parameter settings. This is dependent on two other parameters 'output-format' and the 'preservation-mode', as discussed in the main whitespace processing mode documentation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDisplayName
Returns the user friendly String name of the WhitespaceProcessingMode.
- Specified by:
getDisplayNamein interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user friendly String representing the WhitespaceProcessingMode object
-
getDisplayDescription
Returns the user friendly String description of the WhitespaceProcessingMode.
- Specified by:
getDisplayDescriptionin interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user friendly String description representing the WhitespaceProcessingMode object
-
toString
- Overrides:
toStringin classEnum<WhitespaceProcessingMode>
-