Package com.deltaxml.docbook.config
Enum Class PreservationMode
- All Implemented Interfaces:
com.deltaxml.docbook.DocBookCompareDisplayable,Serializable,Comparable<PreservationMode>,Constable
public enum PreservationMode
extends Enum<PreservationMode>
implements com.deltaxml.docbook.DocBookCompareDisplayable
An enum representing the different document preservation modes.
-
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 setting based on the output format.Preserve document typing and original attribute information.Preserve document typing information.Enhance round-trip processing by analysing entity contents.Enhance round-trip processing by analysing both entity and nested entity contents.Preserve document type, entity usage, and attribute usage data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user-friendly String description of the PreservationMode.Returns the user-friendly String name of the PreservationMode.toString()static PreservationModeReturns the enum constant of this class with the specified name.static PreservationMode[]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
-
AUTOMATIC
Chooses the most appropriate setting based on the output format. If tracked changes are being produced, this will be 'roundTrip', otherwise 'docAndAttrib' will be used. -
DOCUMENT
Preserve document typing information. -
DOC_AND_ATTRIB
Preserve document typing and original attribute information. -
ROUND_TRIP
Preserve document type, entity usage, and attribute usage data. -
ENTITY_REF
Enhance round-trip processing by analysing entity contents. -
NESTED_ENTITY_REF
Enhance round-trip processing by analysing both entity and nested entity contents.
-
-
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 PreservationMode.
- Specified by:
getDisplayNamein interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user-friendly String representing the PreservationMode object
-
getDisplayDescription
Returns the user-friendly String description of the PreservationMode.
- Specified by:
getDisplayDescriptionin interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user-friendly String description representing the PreservationMode object
-
toString
- Overrides:
toStringin classEnum<PreservationMode>
-