public interface IProblemItem
Modifier and Type | Field and Description |
---|---|
static int |
SEV_ERROR
Severity: error
|
static int |
SEV_INFO
Severity: informational
|
static int |
SEV_USER
Severity: user check
|
static int |
SEV_WARNING
Severity: warning
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IProblemItemVisitor visitor)
Accept
IProblemItemVisitor . |
String |
getDescription() |
IEvaluationItem |
getEvaluationItem() |
HighlightTargetId[] |
getHighlightTargetIds() |
HighlightTargetNodeInfo |
getHighlightTargetNodeInfo() |
HighlightTargetSourceInfo[] |
getHighlightTargetSoruceInfo() |
String |
getId() |
int |
getLine() |
String |
getLineStr() |
String |
getLineStrMulti() |
Image[] |
getMetricsIcons() |
int[] |
getMetricsScores() |
int |
getSerialNumber() |
int |
getSeverity() |
String |
getSeverityStr() |
int |
getSubType() |
String[] |
getTableDataGuideline() |
Node |
getTargetNode() |
String |
getTargetString() |
String |
getTargetStringForExport() |
boolean |
isCanHighlight() |
void |
setCanHighlight(boolean canHighlight)
Set if his error position can highlight in visualization result view
|
void |
setDescription(String description)
Set description about this problem
|
void |
setEvaluationItem(IEvaluationItem evalItem)
Set
IEvaluationItem relates to this problem |
void |
setHighlightTargetIds(HighlightTargetId targetId)
Set
HighlightTargetId corresponds to this problem |
void |
setHighlightTargetIds(HighlightTargetId[] targetIds)
Set array of
HighlightTargetId corresponds to this problem |
void |
setHighlightTargetNodeInfo(HighlightTargetNodeInfo targetNodeInfo)
|
void |
setHighlightTargetSourceInfo(HighlightTargetSourceInfo targetSourceInfo)
Set
HighlightTargetSourceInfo corresponds to this problem |
void |
setHighlightTargetSourceInfo(HighlightTargetSourceInfo[] targetSourceInfo)
Set array of
HighlightTargetSourceInfo corresponds to this
problem |
void |
setLine(int line)
Set line number of the problem position
|
void |
setSerialNumber(int serialNumber)
Set serial number for this problem
|
void |
setSubType(int subType)
Set problem sub type
|
void |
setTargetNode(Node targetNode)
Set target
Node of this problem |
void |
setTargetString(String targetString)
Set target String will be embedded into description
|
void |
setTargetStringForExport(String targetString)
Set target String will be used to export this problem item
|
static final int SEV_ERROR
static final int SEV_WARNING
static final int SEV_USER
static final int SEV_INFO
IEvaluationItem getEvaluationItem()
String getDescription()
int getSerialNumber()
String getTargetString()
String getTargetStringForExport()
boolean isCanHighlight()
void setCanHighlight(boolean canHighlight)
canHighlight
- true if this error position can highlight in visualization
result viewvoid setEvaluationItem(IEvaluationItem evalItem)
IEvaluationItem
relates to this problemevalItem
- void setDescription(String description)
description
- void setSerialNumber(int serialNumber)
serialNumber
- serial numbervoid setHighlightTargetNodeInfo(HighlightTargetNodeInfo targetNodeInfo)
targetNodeInfo
- target HighlightTargetNodeInfo
HighlightTargetNodeInfo getHighlightTargetNodeInfo()
HighlightTargetNodeInfo
of this problemvoid setHighlightTargetIds(HighlightTargetId targetId)
HighlightTargetId
corresponds to this problemtargetId
- target HighlightTargetId
void setHighlightTargetIds(HighlightTargetId[] targetIds)
HighlightTargetId
corresponds to this problemtargetIds
- array of target HighlightTargetId
HighlightTargetId[] getHighlightTargetIds()
HighlightTargetId
corresponds to this problemvoid setTargetNode(Node targetNode)
Node
of this problemtargetNode
- target Nodevoid setTargetString(String targetString)
targetString
- target Stringvoid setTargetStringForExport(String targetString)
targetString
- target Stringint getLine()
String getLineStr()
void setLine(int line)
line
- line numberString getLineStrMulti()
void setHighlightTargetSourceInfo(HighlightTargetSourceInfo targetSourceInfo)
HighlightTargetSourceInfo
corresponds to this problemtargetSourceInfo
- target HighlightTargetSourceInfo
void setHighlightTargetSourceInfo(HighlightTargetSourceInfo[] targetSourceInfo)
HighlightTargetSourceInfo
corresponds to this
problemtargetSourceInfo
- array of target HighlightTargetSourceInfo
HighlightTargetSourceInfo[] getHighlightTargetSoruceInfo()
HighlightTargetSourceInfo
of this problemvoid accept(IProblemItemVisitor visitor)
IProblemItemVisitor
. This method can be used to export
problem list, filter some problem items, etc.visitor
- target IProblemItemVisitor
to acceptString getId()
int getSeverity()
String getSeverityStr()
int[] getMetricsScores()
Image[] getMetricsIcons()
String[] getTableDataGuideline()
int getSubType()
void setSubType(int subType)
subType
- problem sub type