Enum Conflict.ConflictType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONTENT_ID_DIFFERS
      Content IDs of existing and expected content differs.
      DOCUMENTATION_DIFFERS
      Values of existing and expected documentation differs.
      KEY_CONFLICT
      Generic key conflict, reported for merges and transplants.
      KEY_DOES_NOT_EXIST
      The key does not exist, but is expected to exist.
      KEY_EXISTS
      The key exists, but is expected to not exist.
      NAMESPACE_ABSENT
      The mandatory parent namespace does not exist.
      NAMESPACE_NOT_EMPTY
      A namespace must be empty before it can be deleted.
      NOT_A_NAMESPACE
      The key expected to be a namespace is not a namespace.
      PAYLOAD_DIFFERS
      Payload of existing and expected differ.
      UNEXPECTED_HASH
      Reference is not at the expected hash, reported for reference assignment and deletion.
      UNKNOWN
      Unknown, for situations when the server returned a conflict type that is unknown to the client.
      VALUE_DIFFERS
      Values of existing and expected content differs.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Conflict.ConflictType parse​(java.lang.String conflictType)  
      static Conflict.ConflictType valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null