Enum DataTransactionResult.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CANCELLED
      An operation was cancelled by a third party (eg.
      ERROR
      The Value operation failed because an unexpected condition occurred.
      FAILURE
      The Value operation failed for an expected reason (such as the Value being incompatible with the DataHolder.
      SUCCESS
      The item data operation succeeded.
      UNDEFINED
      The actual result of the operation is undefined, this probably indicates that something went wrong with the operation that the Value couldn't handle or didn't expect.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataTransactionResult.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DataTransactionResult.Type[] 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

      • UNDEFINED

        public static final DataTransactionResult.Type UNDEFINED
        The actual result of the operation is undefined, this probably indicates that something went wrong with the operation that the Value couldn't handle or didn't expect. The state of the Value is undefined.
      • CANCELLED

        public static final DataTransactionResult.Type CANCELLED
        An operation was cancelled by a third party (eg. a Value event was cancelled). The condition of the Value is unchanged.
    • Method Detail

      • values

        public static DataTransactionResult.Type[] 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 (DataTransactionResult.Type c : DataTransactionResult.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataTransactionResult.Type 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