com.intellij.lang.annotation
Class HighlightSeverity

java.lang.Object
  extended by com.intellij.lang.annotation.HighlightSeverity
All Implemented Interfaces:
java.lang.Comparable<HighlightSeverity>

public class HighlightSeverity
extends java.lang.Object
implements java.lang.Comparable<HighlightSeverity>

Defines a highlighting severity level for an annotation.

See Also:
Annotation

Field Summary
static HighlightSeverity ERROR
          The standard severity level for error annotations.
static HighlightSeverity INFORMATION
          The standard severity level for information annotations.
static HighlightSeverity WARNING
          The standard severity level for warning annotations.
 
Constructor Summary
HighlightSeverity(java.lang.String name, int val)
          Creates a new highlighting severity level with the specified name and value.
 
Method Summary
 int compareTo(HighlightSeverity highlightSeverity)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFORMATION

public static final HighlightSeverity INFORMATION
The standard severity level for information annotations.


WARNING

public static final HighlightSeverity WARNING
The standard severity level for warning annotations.


ERROR

public static final HighlightSeverity ERROR
The standard severity level for error annotations.

Constructor Detail

HighlightSeverity

public HighlightSeverity(@NonNls
                         java.lang.String name,
                         int val)
Creates a new highlighting severity level with the specified name and value.

Parameters:
name - the name of the highlighting level.
val - the value of the highlighting level. Used for comparing the annotations - if two annotations with different severity levels cover the same text range, only the annotation with a higher severity level is displayed.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(HighlightSeverity highlightSeverity)
Specified by:
compareTo in interface java.lang.Comparable<HighlightSeverity>