Package org.projectnessie.model
Enum Conflict.ConflictType
- java.lang.Object
-
- java.lang.Enum<Conflict.ConflictType>
-
- org.projectnessie.model.Conflict.ConflictType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Conflict.ConflictType>
- Enclosing interface:
- Conflict
public static enum Conflict.ConflictType extends java.lang.Enum<Conflict.ConflictType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConflict.ConflictType.Deserializer
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_ID_DIFFERSContent IDs of existing and expected content differs.DOCUMENTATION_DIFFERSValues of existing and expected documentation differs.KEY_CONFLICTGeneric key conflict, reported for merges and transplants.KEY_DOES_NOT_EXISTThe key does not exist, but is expected to exist.KEY_EXISTSThe key exists, but is expected to not exist.NAMESPACE_ABSENTThe mandatory parent namespace does not exist.NAMESPACE_NOT_EMPTYA namespace must be empty before it can be deleted.NOT_A_NAMESPACEThe key expected to be a namespace is not a namespace.PAYLOAD_DIFFERSPayload of existing and expected differ.UNEXPECTED_HASHReference is not at the expected hash, reported for reference assignment and deletion.UNKNOWNUnknown, for situations when the server returned a conflict type that is unknown to the client.VALUE_DIFFERSValues of existing and expected content differs.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Conflict.ConflictTypeparse(java.lang.String conflictType)static Conflict.ConflictTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Conflict.ConflictType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Conflict.ConflictType UNKNOWN
Unknown, for situations when the server returned a conflict type that is unknown to the client.
-
KEY_EXISTS
public static final Conflict.ConflictType KEY_EXISTS
The key exists, but is expected to not exist.
-
KEY_DOES_NOT_EXIST
public static final Conflict.ConflictType KEY_DOES_NOT_EXIST
The key does not exist, but is expected to exist.
-
PAYLOAD_DIFFERS
public static final Conflict.ConflictType PAYLOAD_DIFFERS
Payload of existing and expected differ.
-
CONTENT_ID_DIFFERS
public static final Conflict.ConflictType CONTENT_ID_DIFFERS
Content IDs of existing and expected content differs.
-
VALUE_DIFFERS
public static final Conflict.ConflictType VALUE_DIFFERS
Values of existing and expected content differs.
-
NAMESPACE_ABSENT
public static final Conflict.ConflictType NAMESPACE_ABSENT
The mandatory parent namespace does not exist.
-
NOT_A_NAMESPACE
public static final Conflict.ConflictType NOT_A_NAMESPACE
The key expected to be a namespace is not a namespace.
-
NAMESPACE_NOT_EMPTY
public static final Conflict.ConflictType NAMESPACE_NOT_EMPTY
A namespace must be empty before it can be deleted.
-
UNEXPECTED_HASH
public static final Conflict.ConflictType UNEXPECTED_HASH
Reference is not at the expected hash, reported for reference assignment and deletion.
-
KEY_CONFLICT
public static final Conflict.ConflictType KEY_CONFLICT
Generic key conflict, reported for merges and transplants.
-
DOCUMENTATION_DIFFERS
public static final Conflict.ConflictType DOCUMENTATION_DIFFERS
Values of existing and expected documentation differs.
-
-
Method Detail
-
values
public static Conflict.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 (Conflict.ConflictType c : Conflict.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 Conflict.ConflictType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
parse
public static Conflict.ConflictType parse(java.lang.String conflictType)
-
-