Enum Class Validate.Level

java.lang.Object
java.lang.Enum<Validate.Level>
com.blackbuild.klum.ast.Validate.Level
All Implemented Interfaces:
Serializable, Comparable<Validate.Level>, Constable
Enclosing class:
Validate

public static enum Validate.Level extends Enum<Validate.Level>
Defines the severity of the validation problem.
  • Enum Constant Details

    • NONE

      public static final Validate.Level NONE
      No validation problem, used as a default value
    • INFO

      public static final Validate.Level INFO
      Informational message, used to indicate that something is not wrong, but might be worth noting.
    • WARNING

      public static final Validate.Level WARNING
      Warning message, used to indicate that something is not wrong, but might lead to problems later on.
    • DEPRECATION

      public static final Validate.Level DEPRECATION
      Indicates that the validation problem is a deprecation warning, meaning that the validation target is still valid but should not be used anymore.
    • ERROR

      public static final Validate.Level ERROR
      Indicates that the validation problem is an error, meaning that the validation target is not valid.
  • Method Details

    • values

      public static Validate.Level[] 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 Validate.Level 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
    • combine

      public Validate.Level combine(Validate.Level other)
    • worseThen

      public boolean worseThen(Validate.Level other)
    • equalOrWorseThen

      public boolean equalOrWorseThen(Validate.Level level)
    • fromString

      public static Validate.Level fromString(String level)