|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.platform.analysis.core.reporting.AbstractAnalysisHTMLExporter
This class provides functionality that is common for all HTML data exporters. All HTML exporter classes should extend this abstract class and override any methods required to support custom exporting.
| Constructor Summary | |
|---|---|
AbstractAnalysisHTMLExporter()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
export(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
AbstractAnalysisProvider provider)
Generate an export document based on the data contained in a given history. |
protected java.lang.String |
exportProvider(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
AbstractAnalysisProvider provider)
Export the specified provider and its child elements to XML. |
protected java.lang.String |
exportResult(AnalysisHistory history,
AbstractAnalysisResult element)
Generate a report for this element |
protected java.lang.String |
exportRule(AnalysisHistory history,
AbstractAnalysisRule rule)
Export the specified rule and its child elements to XML. |
protected java.lang.String |
exportTopLevelCategory(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
DefaultAnalysisCategory category)
Export the specified top-level category and its child elements to XML. |
java.lang.String |
getDescription()
|
java.lang.String |
getExportFile()
|
java.lang.String |
getExportFolder()
|
java.lang.String |
getFileType()
|
java.lang.String |
getId()
|
java.lang.String |
getLabel()
|
void |
setDescription(java.lang.String newDescription)
Set the description for this data exporter. |
void |
setExportFile(java.lang.String file)
Set the name of the file where the exported data will be written. |
void |
setExportFolder(java.lang.String folder)
Set the base folder where the exported data will be written. |
void |
setId(java.lang.String newId)
Set the id for this data exporter. |
void |
setLabel(java.lang.String newLabel)
Set the label for this data exporter. |
java.lang.String |
writeImage(AbstractAnalysisRule rule)
Write an icon image associated with an analysis rule into the destination icons folder for the exported data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractAnalysisHTMLExporter()
| Method Detail |
public abstract java.lang.String export(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
AbstractAnalysisProvider provider)
IAnalysisExporter
export in interface IAnalysisExportermonitor - A progress monitor to report statushistory - The history to reference for XML data generationprovider - The analysis provider whose data is being exported
protected java.lang.String exportProvider(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
AbstractAnalysisProvider provider)
monitor - A progress monitor to report statushistory - The history instance whose data will be exportedprovider - The provider to export
protected java.lang.String exportTopLevelCategory(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisHistory history,
DefaultAnalysisCategory category)
monitor - A progress monitor to report statushistory - The history instance whose data will be exportedcategory - The top level category to export
protected java.lang.String exportRule(AnalysisHistory history,
AbstractAnalysisRule rule)
history - The history instance whose data will be exportedrule - The rule to export
protected java.lang.String exportResult(AnalysisHistory history,
AbstractAnalysisResult element)
history - The analysis history for which the report is being generatedelement - The analysis provider whose data is being exported
public final void setLabel(java.lang.String newLabel)
IAnalysisExporter
setLabel in interface IAnalysisExporternewLabel - The new label for this exporterpublic final java.lang.String getLabel()
getLabel in interface IAnalysisExporterpublic final void setId(java.lang.String newId)
IAnalysisExporter
setId in interface IAnalysisExporternewId - The unique identifier for this exporterpublic final java.lang.String getId()
getId in interface IAnalysisExporterpublic final void setDescription(java.lang.String newDescription)
IAnalysisExporter
setDescription in interface IAnalysisExporternewDescription - The new label for this exporterpublic final java.lang.String getDescription()
getDescription in interface IAnalysisExporterpublic final void setExportFolder(java.lang.String folder)
IAnalysisExporter
setExportFolder in interface IAnalysisExporterfolder - The base export folderpublic final void setExportFile(java.lang.String file)
IAnalysisExporter
setExportFile in interface IAnalysisExporterfile - The name of the export filepublic final java.lang.String getExportFile()
public final java.lang.String getExportFolder()
public final java.lang.String writeImage(AbstractAnalysisRule rule)
rule - The rule for which the image will be exported
public final java.lang.String getFileType()
getFileType in interface IAnalysisExporter
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||