Package uk.ac.starlink.ttools.taplint
Enum ReportType
- All Implemented Interfaces:
Serializable
,Comparable<ReportType>
,java.lang.constant.Constable
Message types for use with a reporter.
- Since:
- 29 Jun 2011
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportType
forChar
(char chr) Returns the type instance corresponding to a given character.char
getChar()
Returns the single-character identifier for this type.Returns the description text for this type.getName()
Returns the human-readable name.getNames()
Returns plural of human-readable name.static ReportType
Returns the enum constant of this type with the specified name.static ReportType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR
Compliance error. -
WARNING
Questionable or non-Recommended behaviour. -
INFO
Information about validator progress. -
SUMMARY
Summary of previous reports. -
FAILURE
Unable to perform test (internal error or missing precondition).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getChar
public char getChar()Returns the single-character identifier for this type.- Returns:
- identifier character
-
getName
Returns the human-readable name.- Returns:
- name
-
getNames
Returns plural of human-readable name.- Returns:
- name plural
-
getDescription
Returns the description text for this type.- Returns:
- description
-
forChar
Returns the type instance corresponding to a given character.- Parameters:
chr
- case-insensitive character- Returns:
- type for which
type.getChar()==chr
-