Package org.eclipse.mat.report
Interface IOutputter.Context
-
- Enclosing interface:
- IOutputter
public static interface IOutputter.ContextHolds information which controls how to format a report.- No Implement:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddContextResult(String name, IResult result)Add aIResultfrom aDetailResultProviderto the report.StringaddIcon(URL icon)Get string to represent an iconStringgetId()intgetLimit()The limit on the number of rows to generate in the report from the result.FilegetOutputDirectory()Where files for the report can be generated.StringgetPathToRoot()IQueryContextgetQueryContext()The query context for the result.booleanhasLimit()Whether there is a limit on the number of rows to generate.booleanisColumnVisible(int columnIndex)Whether a column of the result should be displayed in the report.booleanisTotalsRowVisible()Whether to display a totals row from the result in the report.Stringparam(String key)Get the value of a parameter fromParamscontrolling generation of a report.Stringparam(String key, String defaultValue)Get the value of a parameter fromParamscontrolling generation of a report.
-
-
-
Method Detail
-
getId
String getId()
-
getQueryContext
IQueryContext getQueryContext()
The query context for the result. Could be used to convert object identifiers to addresses.- Returns:
- the query context
-
getOutputDirectory
File getOutputDirectory()
Where files for the report can be generated.- Returns:
- the directory
-
getPathToRoot
String getPathToRoot()
-
addIcon
String addIcon(URL icon)
Get string to represent an icon- Parameters:
icon- where the icon can be found- Returns:
- a string which can be used for the icon
-
addContextResult
String addContextResult(String name, IResult result)
Add aIResultfrom aDetailResultProviderto the report.- Parameters:
name-result-- Returns:
- a String which can be used by the IOutputter to identify the formatted result
-
hasLimit
boolean hasLimit()
Whether there is a limit on the number of rows to generate.- Returns:
- true if there is a limit
-
getLimit
int getLimit()
The limit on the number of rows to generate in the report from the result.- Returns:
- number of rows
-
isColumnVisible
boolean isColumnVisible(int columnIndex)
Whether a column of the result should be displayed in the report.- Parameters:
columnIndex-- Returns:
- true if column should be displayed
-
isTotalsRowVisible
boolean isTotalsRowVisible()
Whether to display a totals row from the result in the report.- Returns:
- true if the totals row should be displayed
-
param
String param(String key)
Get the value of a parameter fromParamscontrolling generation of a report.- Parameters:
key-- Returns:
- the value or null
-
-