Class IconTool
- java.lang.Object
-
- org.apache.maven.plugins.checkstyle.IconTool
-
public class IconTool extends java.lang.ObjectA little tool to deal with info/warning/error icons in Checkstyle reports, with eventual text.- Since:
- 2.13
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERRORstatic java.lang.StringINFOstatic intNO_TEXTstatic intTEXT_ABBREVstatic intTEXT_SIMPLEstatic intTEXT_TITLEstatic java.lang.StringWARNING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidiconError()Render an error icon.voidiconError(int textType)Render an error icon with associated text.voidiconInfo()Render an info icon.voidiconInfo(int textType)Render an info icon with associated text.voidiconSeverity(java.lang.String level)Render a simple icon of given level.voidiconSeverity(java.lang.String level, int textType)Render an icon of given level with associated text.voidiconWarning()Render a warning icon.voidiconWarning(int textType)Render a warning icon with associated text.
-
-
-
Field Detail
-
INFO
public static final java.lang.String INFO
- See Also:
- Constant Field Values
-
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
-
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
-
NO_TEXT
public static final int NO_TEXT
- See Also:
- Constant Field Values
-
TEXT_SIMPLE
public static final int TEXT_SIMPLE
- See Also:
- Constant Field Values
-
TEXT_TITLE
public static final int TEXT_TITLE
- See Also:
- Constant Field Values
-
TEXT_ABBREV
public static final int TEXT_ABBREV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IconTool
public IconTool(Sink sink, java.util.ResourceBundle bundle)
-
-
Method Detail
-
iconSeverity
public void iconSeverity(java.lang.String level)
Render a simple icon of given level.- Parameters:
level- one ofINFO,WARNINGorERRORconstants
-
iconSeverity
public void iconSeverity(java.lang.String level, int textType)Render an icon of given level with associated text.- Parameters:
level- one ofINFO,WARNINGorERRORconstantstextType- one ofNO_TEXT,TEXT_SIMPLE,TEXT_TITLEorTEXT_ABBREVconstants
-
iconInfo
public void iconInfo()
Render an info icon.
-
iconInfo
public void iconInfo(int textType)
Render an info icon with associated text.- Parameters:
textType- one ofNO_TEXT,TEXT_SIMPLE,TEXT_TITLEorTEXT_ABBREVconstants
-
iconWarning
public void iconWarning()
Render a warning icon.
-
iconWarning
public void iconWarning(int textType)
Render a warning icon with associated text.- Parameters:
textType- one ofNO_TEXT,TEXT_SIMPLE,TEXT_TITLEorTEXT_ABBREVconstants
-
iconError
public void iconError()
Render an error icon.
-
iconError
public void iconError(int textType)
Render an error icon with associated text.- Parameters:
textType- one ofNO_TEXT,TEXT_SIMPLE,TEXT_TITLEorTEXT_ABBREVconstants
-
-