Package org.eclipse.mat.query.results
Class TextResult
java.lang.Object
org.eclipse.mat.query.results.TextResult
- All Implemented Interfaces:
IResult
This result is rendered as text.
The input can be plain text, or HTML.
Any object addresses can be rendered
as links and allow the user to execute queries on the objects.
- No Extend:
-
Constructor Summary
ConstructorDescriptionA simple text result as HTMLTextResult
(String text) A simple text result, using the supplied text, as plain text.TextResult
(String text, boolean isHtml) Creates a section to hold some simple text. -
Method Summary
-
Constructor Details
-
TextResult
public TextResult()A simple text result as HTML -
TextResult
A simple text result, using the supplied text, as plain text.- Parameters:
text
- the contents of the report
-
TextResult
Creates a section to hold some simple text.- Parameters:
text
- the contents of the reportisHtml
- whether it is in HTML
-
-
Method Details
-
getResultMetaData
Get the metadata for fine-tuning the display of this result.- Specified by:
getResultMetaData
in interfaceIResult
- Returns:
- null
-
setText
Set the text for the text result.- Parameters:
text
- the contents of the report
-
getText
Get the text- Returns:
- the text of the report
-
isHtml
public boolean isHtml()Whether it is HTML- Returns:
- true if HTML
-
linkTo
Generate a link to another report, and save the referenced report too.- Parameters:
label
- a label for the reportresult
- the result- Returns:
- the URL as a String
-