public static enum ConcurrentMerge.State extends Enum<ConcurrentMerge.State>
This enum represents the current state of the merge object. Methods within a merge 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 merge object can be accessed via ConcurrentMerge.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 merge object.
|
RESET
This is the state after calling
ConcurrentMerge.reset() . |
STARTED
This is the state after setting an ancestor.
|
Modifier and Type | Method and Description |
---|---|
static ConcurrentMerge.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrentMerge.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrentMerge.State INITIAL
This is the state after initializing a merge object.
public static final ConcurrentMerge.State RESET
This is the state after calling ConcurrentMerge.reset()
. This state is similar to INITIAL, however
ConcurrentMerge.setEntityResolver(org.xml.sax.EntityResolver, boolean)
, ConcurrentMerge.setWordByWord(boolean)
,
ConcurrentMerge.setDoctypePreservationMode(DoctypePreservationMode)
and
ConcurrentMerge.setEntityReferencePreservationMode(EntityReferencePreservationMode)
do not need to be re-called.
public static final ConcurrentMerge.State STARTED
This is the state after setting an ancestor.
public static final ConcurrentMerge.State EXTRACTABLE
This is the state after two or more versions have been added.
public static ConcurrentMerge.State[] values()
for (ConcurrentMerge.State c : ConcurrentMerge.State.values()) System.out.println(c);
public static ConcurrentMerge.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.