Enum Class DataPath

java.lang.Object
java.lang.Enum<DataPath>
org.troy.capstone.constants.DataPath
All Implemented Interfaces:
Serializable, Comparable<DataPath>, Constable

public enum DataPath extends Enum<DataPath>
This enum defines the file paths for the cleaned, attributed, and cleaned & attributed CSV files.
  • Enum Constant Details

    • CLEANED_DATA

      public static final DataPath CLEANED_DATA
      Path to the cleaned data CSV file.
    • ATTRIBUTED_DATA

      public static final DataPath ATTRIBUTED_DATA
      Path to the attributed data CSV file.
    • CLEANED_ATTRIBUTED_DATA

      public static final DataPath CLEANED_ATTRIBUTED_DATA
      Path to the cleaned and attributed data CSV file.
  • Field Details

    • path

      private final String path
      The path represented by this enum constant.
  • Constructor Details

    • DataPath

      private DataPath(String path)
      Constructor for the enum constant.
      Parameters:
      path - The file path associated with the enum constant.
  • Method Details

    • values

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

      public static DataPath valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Getter for the path associated with this enum constant.
      Overrides:
      toString in class Enum<DataPath>
      Returns:
      The file path as a string.