public enum ModifiedFormatOutput extends java.lang.Enum<ModifiedFormatOutput>
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.
Enum Constant and Description |
---|
A
Output only the formatting elements from the A input.
|
AB
Output the A and B formatting elements.
|
AUTOMATIC
Choose the most relevant behaviour based on other configuration settings.
|
B
Output only the formatting elements from the B input.
|
BA
Output the A and B formatting elements.
|
CHANGE
Represent all formatting element changes using the deltaV2.1 format.
|
CONTENT_GROUP
Output the formatting element change using content group.
|
Modifier and Type | Method and Description |
---|---|
static ModifiedFormatOutput |
getModifiedFormatOutput(java.lang.String val)
Returns the
ModifiedFormatOutput instance representing the supplied String value. |
java.lang.String |
toString() |
static ModifiedFormatOutput |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModifiedFormatOutput[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModifiedFormatOutput AUTOMATIC
Choose the most relevant behaviour based on other configuration settings.
For example, if the ResultFormat
is one of the tracked change formats, ModifiedFormatOutput.BA
will be
selected.
public static final ModifiedFormatOutput A
Output only the formatting elements from the A input.
public static final ModifiedFormatOutput B
Output only the formatting elements from the B input.
public static final ModifiedFormatOutput 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.
public static final ModifiedFormatOutput 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.
public static final ModifiedFormatOutput CHANGE
Represent all formatting element changes using the deltaV2.1 format.
public static final ModifiedFormatOutput CONTENT_GROUP
Output the formatting element change using content group.
public static ModifiedFormatOutput[] values()
for (ModifiedFormatOutput c : ModifiedFormatOutput.values()) System.out.println(c);
public static ModifiedFormatOutput valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<ModifiedFormatOutput>
public static ModifiedFormatOutput getModifiedFormatOutput(java.lang.String val)
Returns the ModifiedFormatOutput
instance representing the supplied String value.
This method should not be used under normal circumstances, enum instance values should be used instead.
val
- a Sting representation of a ModifiedFormatOutput
value or null for the default valueModifiedFormatOutput
instance corresponding to the parameter, or null if the value is invalid