Enum FileState

java.lang.Object
java.lang.Enum<FileState>
org.codehaus.mojo.license.FileState
All Implemented Interfaces:
Serializable, Comparable<FileState>

public enum FileState extends Enum<FileState>
Defines state of a file after process.
Since:
1.0
Author:
tchemit dev@tchemit.fr
  • Enum Constant Details

    • update

      public static final FileState update
      file was updated
    • uptodate

      public static final FileState uptodate
      file was up to date
    • add

      public static final FileState add
      something was added on file
    • remove

      public static final FileState remove
      something was removed from file
    • ignore

      public static final FileState ignore
      file was ignored
    • fail

      public static final FileState fail
      treatment failed for file
  • Method Details

    • values

      public static FileState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FileState 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
    • addFile

      public void addFile(File file, EnumMap<FileState,Set<File>> results)
      Register a file for this state on result dictionary.
      Parameters:
      file - file to add
      results - dictionary to update