Package com.deltaxml.docbook.config
Enum Class KeyingMode
- All Implemented Interfaces:
com.deltaxml.docbook.DocBookCompareDisplayable,Serializable,Comparable<KeyingMode>,Constable
public enum KeyingMode
extends Enum<KeyingMode>
implements com.deltaxml.docbook.DocBookCompareDisplayable
An enum representing the different modes to use for keying the input documents.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse a condition attribute if present.Use an id attribute if present.Use a deltaxml:key attribute if present, otherwise use a condition attribute if present.Use a deltaxml:key attribute if present, otherwise use an id attribute if present.Use existing deltaxml:key attributes from the input (and nothing else).Remove all existing deltaxml:key attributes and do not add any others. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user-friendly String description of the KeyingMode.Returns the user-friendly String name of the KeyingMode.toString()static KeyingModeReturns the enum constant of this class with the specified name.static KeyingMode[]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
-
PRESERVE
Use existing deltaxml:key attributes from the input (and nothing else). -
KEY_THEN_ID
Use a deltaxml:key attribute if present, otherwise use an id attribute if present. -
KEY_THEN_CONDITION
Use a deltaxml:key attribute if present, otherwise use a condition attribute if present. -
ID
Use an id attribute if present. Otherwise, do not use a key -
CONDITION
Use a condition attribute if present. Otherwise, do not use a key -
REMOVE
Remove all existing deltaxml:key attributes and do not add any others.
-
-
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 KeyingMode.
- Specified by:
getDisplayNamein interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user-friendly String representing the KeyingMode object
-
getDisplayDescription
Returns the user-friendly String description of the KeyingMode.
- Specified by:
getDisplayDescriptionin interfacecom.deltaxml.docbook.DocBookCompareDisplayable- Returns:
- a user-friendly String description representing the KeyingMode object
-
toString
- Overrides:
toStringin classEnum<KeyingMode>
-