Enum NuitonValidatorScope

java.lang.Object
java.lang.Enum<NuitonValidatorScope>
org.nuiton.validator.NuitonValidatorScope
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NuitonValidatorScope>, java.lang.constant.Constable

public enum NuitonValidatorScope
extends java.lang.Enum<NuitonValidatorScope>
The differents levels of messages in validation process. The order of the enum defines the severity of validation. Always begin with fatal, then error, then if no error found, try warning, then info...
Since:
2.0
Author:
Tony Chemit - chemit@codelutin.com
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    ERROR
    the error scope level.
    FATAL
    the fatal error scope level.
    INFO
    the information scope level.
    WARNING
    the warning scope level.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getLabel()  
    static NuitonValidatorScope valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static NuitonValidatorScope[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FATAL

      public static final NuitonValidatorScope FATAL
      the fatal error scope level. When a message of a such scope is found on a validator, then the validator is invalid and modified.
    • ERROR

      public static final NuitonValidatorScope ERROR
      the error scope level. When a message of a such scope is found on a validator, then the validator is invalid and modified.
    • WARNING

      public static final NuitonValidatorScope WARNING
      the warning scope level. When a message of a such scope is found on a validator, then the validator is still valid but modified.
    • INFO

      public static final NuitonValidatorScope INFO
      the information scope level. When a message of a sucg scope is found on a validator, then the validator is still valid and not modified.
  • Method Details

    • values

      public static NuitonValidatorScope[] 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 NuitonValidatorScope valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getLabel

      public java.lang.String getLabel()