Package org.eclipse.mat.query.results
Class TextResult
- java.lang.Object
-
- org.eclipse.mat.query.results.TextResult
-
-
Constructor Summary
Constructors Constructor Description TextResult()A 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultMetaDatagetResultMetaData()Get the metadata for fine-tuning the display of this result.StringgetText()Get the textbooleanisHtml()Whether it is HTMLStringlinkTo(String label, IResult result)Generate a link to another report, and save the referenced report too.voidsetText(String text)Set the text for the text result.
-
-
-
Constructor Detail
-
TextResult
public TextResult()
A simple text result as HTML
-
TextResult
public TextResult(String text)
A simple text result, using the supplied text, as plain text.- Parameters:
text- the contents of the report
-
TextResult
public TextResult(String text, boolean isHtml)
Creates a section to hold some simple text.- Parameters:
text- the contents of the reportisHtml- whether it is in HTML
-
-
Method Detail
-
getResultMetaData
public ResultMetaData getResultMetaData()
Get the metadata for fine-tuning the display of this result.- Specified by:
getResultMetaDatain interfaceIResult- Returns:
- null
-
setText
public void setText(String text)
Set the text for the text result.- Parameters:
text- the contents of the report
-
getText
public String getText()
Get the text- Returns:
- the text of the report
-
isHtml
public boolean isHtml()
Whether it is HTML- Returns:
- true if HTML
-
-