Package com.deltaxml.dita.config
Enum Class ShowNonPhraseChanges
- All Implemented Interfaces:
com.deltaxml.dita.DitaCompareDisplayable,Serializable,Comparable<ShowNonPhraseChanges>,Constable
public enum ShowNonPhraseChanges
extends Enum<ShowNonPhraseChanges>
implements com.deltaxml.dita.DitaCompareDisplayable
Enumeration representing how to show changes in elements where phrase would be invalid DITA.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf set to 'always' always wrap in the element set from 'phrase-element-name', defaulting to <ph>.If set to 'never' do not show change where a phrase element is not valid.If set to 'where-valid', uses -[[old-text]]- +[[new-text]]+ delimiters to show change where <ph> is not valid. -
Method Summary
Modifier and TypeMethodDescriptionReturns the user-friendly String description of the ShowNonPhraseChanges.Returns the user-friendly String name of the ShowNonPhraseChanges.toString()Returns a String representation of ShowNonPhraseChanges.static ShowNonPhraseChangesReturns the enum constant of this class with the specified name.static ShowNonPhraseChanges[]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
-
WHERE_VALID
If set to 'where-valid', uses -[[old-text]]- +[[new-text]]+ delimiters to show change where <ph> is not valid. Note that although <ph> is the default setting for 'phrase-element-name', a different element such as <text> can be set. -
ALWAYS
If set to 'always' always wrap in the element set from 'phrase-element-name', defaulting to <ph>. -
NEVER
If set to 'never' do not show change where a phrase element is not valid.
-
-
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 ShowNonPhraseChanges.
- Specified by:
getDisplayNamein interfacecom.deltaxml.dita.DitaCompareDisplayable- Returns:
- a user-friendly String representing the ShowNonPhraseChanges object
-
getDisplayDescription
Returns the user-friendly String description of the ShowNonPhraseChanges.
- Specified by:
getDisplayDescriptionin interfacecom.deltaxml.dita.DitaCompareDisplayable- Returns:
- a user-friendly String description representing the ShowNonPhraseChanges object
-
toString
Returns a String representation of ShowNonPhraseChanges.
- Overrides:
toStringin classEnum<ShowNonPhraseChanges>- Returns:
- a String representing the ShowNonPhraseChanges object
-