Enum UIListener.FileMode

  • All Implemented Interfaces:
    Serializable, Comparable<UIListener.FileMode>
    Enclosing class:
    UIListener

    public static enum UIListener.FileMode
    extends Enum<UIListener.FileMode>
    Default: FileMode.CREATE_OR_APPEND
    The mode for handling behaviour when an existing UI file already exists
    CREATE: Only allow new file creation. An exception will be thrown if the log file already exists.
    APPEND: Only allow appending to an existing file. An exception will be thrown if: (a) no file exists, or (b) the network configuration in the existing log file does not match the current log file.
    CREATE_OR_APPEND: As per APPEND, but create a new file if none already exists.
    CREATE_APPEND_NOCHECK: As per CREATE_OR_APPEND, but no exception will be thrown if the existing model does not match the current model structure. This mode is not recommended.
    • Method Detail

      • values

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

        public static UIListener.FileMode 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 name
        NullPointerException - if the argument is null