public class EvaluationResultImpl extends Object implements IEvaluationResult
IEvaluationResult
Constructor and Description |
---|
EvaluationResultImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(IProblemItemVisitor visitor)
Accept
IProblemItemVisitor . |
boolean |
addAssociateFile(File target)
Add File to evaluation result for future use
|
void |
addProblemItems(Collection<IProblemItem> c)
Add problem items into current list
|
void |
addProblemItems(IProblemItem[] items)
Add problem items into current list
|
File[] |
getAssociateFiles()
Get associated
File |
org.eclipse.swt.custom.LineStyleListener |
getLineStyleListener()
Get
LineStyleListener to be used to determine style of evaluation
summary. |
List<IProblemItem> |
getProblemList()
Get current problem item list
|
File |
getSourceFile()
Get evaluation target (source) as File
|
String |
getSummaryReportText()
Get summary text of evaluation
|
String |
getSummaryReportUrl()
Get URL of summary report file
|
String |
getTargetUrl()
Get URL of evaluation target
|
boolean |
isShowAllGuidelineItems()
Check if non-selected guideline item will be shown in the result view
|
boolean |
removeAssociatedFile(File target)
Remove File from evaluation result
|
void |
setLineStyleListener(org.eclipse.swt.custom.LineStyleListener lsl)
Set
LineStyleListener to be used to determine style of evaluation
summary. |
void |
setProblemList(List<IProblemItem> problemList)
Set detected problem item list
|
void |
setShowAllGuidelineItems(boolean b)
Set flag to show non-selected guideline item in the result view
|
void |
setSourceFile(File sourceFile)
Set evaluation target (source) as File
|
void |
setSummaryReportText(String summaryReportText)
Set summary text of evaluation
|
void |
setSummaryReportUrl(String reportUrl)
Set URL of summary report file
|
void |
setTargetUrl(String targetUrl)
Set URL of evaluation target
|
public void setProblemList(List<IProblemItem> problemList)
IEvaluationResult
setProblemList
in interface IEvaluationResult
problemList
- target problem item listpublic void addProblemItems(Collection<IProblemItem> c)
IEvaluationResult
addProblemItems
in interface IEvaluationResult
c
- target problem item collection to addpublic void addProblemItems(IProblemItem[] items)
IEvaluationResult
addProblemItems
in interface IEvaluationResult
items
- target problem item array to addpublic List<IProblemItem> getProblemList()
IEvaluationResult
getProblemList
in interface IEvaluationResult
public void setSummaryReportText(String summaryReportText)
IEvaluationResult
setSummaryReportText
in interface IEvaluationResult
summaryReportText
- summary of evaluationpublic String getSummaryReportText()
IEvaluationResult
getSummaryReportText
in interface IEvaluationResult
public String getSummaryReportUrl()
IEvaluationResult
getSummaryReportUrl
in interface IEvaluationResult
public void setSummaryReportUrl(String reportUrl)
IEvaluationResult
setSummaryReportUrl
in interface IEvaluationResult
reportUrl
- URL of summary reportpublic void accept(IProblemItemVisitor visitor)
IEvaluationResult
IProblemItemVisitor
. This method can be used to export
problem list, filter some problem items, etc.accept
in interface IEvaluationResult
visitor
- target IProblemItemVisitor
to acceptpublic String getTargetUrl()
IEvaluationResult
getTargetUrl
in interface IEvaluationResult
public void setTargetUrl(String targetUrl)
IEvaluationResult
setTargetUrl
in interface IEvaluationResult
targetUrl
- URL of evaluation targetpublic File getSourceFile()
IEvaluationResult
getSourceFile
in interface IEvaluationResult
File
public void setSourceFile(File sourceFile)
IEvaluationResult
setSourceFile
in interface IEvaluationResult
sourceFile
- target source File
public boolean isShowAllGuidelineItems()
IEvaluationResult
isShowAllGuidelineItems
in interface IEvaluationResult
public void setShowAllGuidelineItems(boolean b)
IEvaluationResult
setShowAllGuidelineItems
in interface IEvaluationResult
b
- true to show all guideline item in the result viewpublic org.eclipse.swt.custom.LineStyleListener getLineStyleListener()
IEvaluationResult
LineStyleListener
to be used to determine style of evaluation
summary.getLineStyleListener
in interface IEvaluationResult
LineStyleListener
public void setLineStyleListener(org.eclipse.swt.custom.LineStyleListener lsl)
IEvaluationResult
LineStyleListener
to be used to determine style of evaluation
summary.setLineStyleListener
in interface IEvaluationResult
lsl
- target LineStyleListener
public boolean addAssociateFile(File target)
IEvaluationResult
addAssociateFile
in interface IEvaluationResult
target
- target Filepublic File[] getAssociateFiles()
IEvaluationResult
File
getAssociateFiles
in interface IEvaluationResult
File
public boolean removeAssociatedFile(File target)
IEvaluationResult
removeAssociatedFile
in interface IEvaluationResult
target
- target File