Enum Class TaskTideModelType

java.lang.Object
java.lang.Enum<TaskTideModelType>
org.tasktide.core.TaskTideModelType
All Implemented Interfaces:
Serializable, Comparable<TaskTideModelType>, Constable

public enum TaskTideModelType extends Enum<TaskTideModelType>
Enum of valid model types
  • Enum Constant Details

  • Method Details

    • values

      public static TaskTideModelType[] 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 TaskTideModelType 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
    • isClassName

      public abstract boolean isClassName(String query)
      Checks whether queried string matches the simple class
      Parameters:
      query -
      Returns:
      boolean
    • isModel

      public abstract boolean isModel(String query)
      Compare to queried model string
      Parameters:
      query -
      Returns:
      boolean
    • isModel

      public abstract boolean isModel(TaskTideModelType query)
      Compare to queried to model
      Parameters:
      query -
      Returns:
      boolean
    • toString

      public abstract String toString()
      Represent value as a string
      Overrides:
      toString in class Enum<TaskTideModelType>
      Returns:
      String
    • indexOf

      public static int indexOf(String query)
      Return index of queried model
      Parameters:
      query -
      Returns:
      int
    • hasType

      public static boolean hasType(String query)
      Check if queried type exists
      Parameters:
      query -
      Returns:
      boolean
    • getQuery

      public static TaskTideModelType getQuery(String query)
      Return the TaskTide model type for query or null
      Parameters:
      query -
      Returns:
      TaskTideModelType