Enum Class ModifiedFormatOutput
- All Implemented Interfaces:
Serializable,Comparable<ModifiedFormatOutput>,Constable
Specifies how modified 'formatting' elements should be output.
The DocumentComparator and deltaV2.1 have the ability to represent overlapping hierarchies from the A and B input documents by flattening and subsequently fragmenting the elements where necessary. In order to produce a meaningful result when deltaV2.1 is not the output format, these overlapping hierarchies must be reconciled in some way. This enumeration represents the different options for processing the elements that were flattened in the inputs.
- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOutput only the formatting elements from the A input.Output the A and B formatting elements.Choose the most relevant behaviour based on other configuration settings.Output only the formatting elements from the B input.Output the A and B formatting elements.Represent all formatting element changes using the deltaV2.1 format.Output the formatting element change using content group. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiedFormatOutputReturns theModifiedFormatOutputinstance representing the supplied String value.toString()static ModifiedFormatOutputReturns the enum constant of this class with the specified name.static ModifiedFormatOutput[]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
Choose the most relevant behaviour based on other configuration settings.
For example, if the
ResultFormatis one of the tracked change formats,BAwill be selected. -
A
Output only the formatting elements from the A input.
-
B
Output only the formatting elements from the B input.
-
AB
Output the A and B formatting elements. Where A and B formatting elements overlap or are nested, use formatting elements from the A input.
-
BA
Output the A and B formatting elements. Where A and B formatting elements overlap or are nested, use formatting elements from the B input.
-
CHANGE
Represent all formatting element changes using the deltaV2.1 format.
-
CONTENT_GROUP
Output the formatting element change using content group.
-
-
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
-
toString
- Overrides:
toStringin classEnum<ModifiedFormatOutput>
-
getModifiedFormatOutput
Returns the
ModifiedFormatOutputinstance representing the supplied String value.This method should not be used under normal circumstances, enum instance values should be used instead.
- Parameters:
val- a Sting representation of aModifiedFormatOutputvalue or null for the default value- Returns:
- the
ModifiedFormatOutputinstance corresponding to the parameter, or null if the value is invalid
-