Package org.xwiki.diff
Enum ConflictDecision.DecisionType
- java.lang.Object
-
- java.lang.Enum<ConflictDecision.DecisionType>
-
- org.xwiki.diff.ConflictDecision.DecisionType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConflictDecision.DecisionType>
- Enclosing interface:
- ConflictDecision<E>
public static enum ConflictDecision.DecisionType extends Enum<ConflictDecision.DecisionType>
The decision made for this conflict.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENT
Keep the current version, the returned chunk should be the current version.CUSTOM
Specify a custom version, the returned chunk is the one set by the user.NEXT
Keep the next version, the returned chunk should be the next version.PREVIOUS
Keep the previous version, the returned chunk should be the previous version.UNDECIDED
The decision has not been made yet, the returned chunk might be null.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConflictDecision.DecisionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConflictDecision.DecisionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDECIDED
public static final ConflictDecision.DecisionType UNDECIDED
The decision has not been made yet, the returned chunk might be null.
-
PREVIOUS
public static final ConflictDecision.DecisionType PREVIOUS
Keep the previous version, the returned chunk should be the previous version.
-
CURRENT
public static final ConflictDecision.DecisionType CURRENT
Keep the current version, the returned chunk should be the current version.
-
NEXT
public static final ConflictDecision.DecisionType NEXT
Keep the next version, the returned chunk should be the next version.
-
CUSTOM
public static final ConflictDecision.DecisionType CUSTOM
Specify a custom version, the returned chunk is the one set by the user. If none is provided, can be null or empty chunk.
-
-
Method Detail
-
values
public static ConflictDecision.DecisionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConflictDecision.DecisionType c : ConflictDecision.DecisionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConflictDecision.DecisionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-