public static enum ThreeWayMerge.State extends Enum<ThreeWayMerge.State>
This enum represents the current state of the ThreeWayMerge object. Methods within a ThreeWayMerge object can only be invoked in
certain states, otherwise IllegalStateException
s will be thrown. The table below documents which methods can be
thrown in each state, and what effect those methods have on the state.
The change of state is demonstrated in the following state-diagram:
The current state of the ThreeWayMerge object can be accessed via ThreeWayMerge.getCurrentState()
.
Enum Constant and Description |
---|
EXTRACTABLE
This is the state after two or more versions have been added.
|
INITIAL
This is the state after initializing a ThreeWayMerge object.
|
RESET
This is the state after calling
ThreeWayMerge.reset() . |
STARTED
This is the state after setting an ancestor.
|
Modifier and Type | Method and Description |
---|---|
static ThreeWayMerge.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreeWayMerge.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreeWayMerge.State INITIAL
This is the state after initializing a ThreeWayMerge object.
public static final ThreeWayMerge.State RESET
This is the state after calling ThreeWayMerge.reset()
. This state is similar to INITIAL, however
ThreeWayMerge.setEntityResolver(org.xml.sax.EntityResolver, boolean)
, ThreeWayMerge.setWordByWord(boolean)
,
ThreeWayMerge.setDoctypePreservationMode(DoctypePreservationMode)
and
ThreeWayMerge.setEntityReferencePreservationMode(EntityReferencePreservationMode)
do not need to be
re-called.
public static final ThreeWayMerge.State STARTED
This is the state after setting an ancestor.
public static final ThreeWayMerge.State EXTRACTABLE
This is the state after two or more versions have been added.
public static ThreeWayMerge.State[] values()
for (ThreeWayMerge.State c : ThreeWayMerge.State.values()) System.out.println(c);
public static ThreeWayMerge.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 - 2019 DeltaXML Ltd. All Rights Reserved.