Package org.nuiton.validator
Enum NuitonValidatorScope
- java.lang.Object
- 
- java.lang.Enum<NuitonValidatorScope>
- 
- org.nuiton.validator.NuitonValidatorScope
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<NuitonValidatorScope>
 
 public enum NuitonValidatorScope extends 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
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()static NuitonValidatorScopevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
FATALpublic 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.
 - 
ERRORpublic 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.
 - 
WARNINGpublic 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.
 - 
INFOpublic 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 Detail- 
valuespublic static NuitonValidatorScope[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NuitonValidatorScope c : NuitonValidatorScope.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static NuitonValidatorScope 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
 
 - 
getLabelpublic String getLabel() 
 
- 
 
-