public enum ConflictResolutionMode extends java.lang.Enum<ConflictResolutionMode>
Enum Constant and Description |
---|
APPEND
Add new
RootNode after existing nodes |
FAIL
Throw
SpoonException if a conflict happens, it is the default in most cases. |
KEEP_OLD_NODE
|
USE_NEW_NODE
|
Modifier and Type | Method and Description |
---|---|
static ConflictResolutionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConflictResolutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConflictResolutionMode FAIL
SpoonException
if a conflict happens, it is the default in most cases. But there are some standard Pattern builder algorithms (mainly these which deals with legacy Templates), which are using the other modes.public static final ConflictResolutionMode USE_NEW_NODE
public static final ConflictResolutionMode KEEP_OLD_NODE
public static final ConflictResolutionMode APPEND
RootNode
after existing nodespublic static ConflictResolutionMode[] values()
for (ConflictResolutionMode c : ConflictResolutionMode.values()) System.out.println(c);
public static ConflictResolutionMode 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 nullCopyright © 2007–2021 Inria. All rights reserved.