Package org.xwiki.extension.xar.question
Enum ConflictQuestion.ConflictType
- java.lang.Object
-
- java.lang.Enum<ConflictQuestion.ConflictType>
-
- org.xwiki.extension.xar.question.ConflictQuestion.ConflictType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConflictQuestion.ConflictType>
- Enclosing class:
- ConflictQuestion
public static enum ConflictQuestion.ConflictType extends Enum<ConflictQuestion.ConflictType>
The type of conflict.- Since:
- 9.2RC1
- Version:
- $Id: 1db7f40545efed0aa2f92bbcc701acc3df52da94 $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENT_DELETED
Already deleted current document.CURRENT_EXIST
Already existing different document.MERGE_FAILURE
3 ways merge failed.MERGE_SUCCESS
3 ways merge succeed (at least low level from 3 ways merge point of view).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConflictQuestion.GlobalAction>
getActions()
static ConflictQuestion.ConflictType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConflictQuestion.ConflictType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MERGE_SUCCESS
public static final ConflictQuestion.ConflictType MERGE_SUCCESS
3 ways merge succeed (at least low level from 3 ways merge point of view).
-
MERGE_FAILURE
public static final ConflictQuestion.ConflictType MERGE_FAILURE
3 ways merge failed.
-
CURRENT_EXIST
public static final ConflictQuestion.ConflictType CURRENT_EXIST
Already existing different document.
-
CURRENT_DELETED
public static final ConflictQuestion.ConflictType CURRENT_DELETED
Already deleted current document.
-
-
Method Detail
-
values
public static ConflictQuestion.ConflictType[] 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 (ConflictQuestion.ConflictType c : ConflictQuestion.ConflictType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConflictQuestion.ConflictType 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
-
getActions
public List<ConflictQuestion.GlobalAction> getActions()
-
-