Package org.eclipse.mat.query.results
Class CompositeResult
java.lang.Object
org.eclipse.mat.query.results.CompositeResult
- All Implemented Interfaces:
IResult
Return multiple result types.
If it is returned from an IQuery without
setAsHtml(boolean) being set to true
then the Memory Analyzer graphical user interface displays each result as a separate tab.
If setAsHtml(boolean) has been set true or
if the CompositeResult is incorporated into an HTML report then each result appears
as a separate HTML section.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd one more result with the given namevoidAdd one more resultbooleanasHtml()Whether to display the results as HTML.getName()Get the name of this whole report.Get a list of the sub-resultsGet the metadata (none).Deprecated.A combined statusbooleanisEmpty()See if there are sub-resultsvoidsetAsHtml(boolean asHtml) Change the HTML setting.voidSet the name of this whole report.voidsetStatus(ITestResult.Status status) Set the combined status
-
Constructor Details
-
CompositeResult
Build a result out of several others- Parameters:
results- a list of results
-
-
Method Details
-
getResultMetaData
Get the metadata (none).- Specified by:
getResultMetaDatain interfaceIResult- Returns:
- null
-
getResults
Deprecated.UsegetResultEntries()instead- Returns:
- the multiple results from a
CompositeResult
-
getResultEntries
Get a list of the sub-results- Returns:
- an unmodifiable list
-
isEmpty
public boolean isEmpty()See if there are sub-results- Returns:
- if no sub-results
-
addResult
Add one more result- Parameters:
result- the sub-result
-
addResult
Add one more result with the given name- Parameters:
name- the nameresult- the sub-result
-
getStatus
A combined status- Returns:
- the status
-
setStatus
Set the combined status- Parameters:
status- the new status
-
asHtml
public boolean asHtml()Whether to display the results as HTML.- Returns:
- true if to be HTML.
-
setAsHtml
public void setAsHtml(boolean asHtml) Change the HTML setting.- Parameters:
asHtml- true if HTML required
-
getName
Get the name of this whole report.- Returns:
- the name of the report
-
setName
Set the name of this whole report.- Parameters:
name- the name of the report
-
getResultEntries()instead