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