Class InspectionInstance
- java.lang.Object
-
- jetbrains.buildServer.agent.inspections.InspectionInstance
-
public class InspectionInstance extends Object
Concrete defect, warning, error message Encapsulates location, description and various attributes
-
-
Constructor Summary
Constructors Constructor Description InspectionInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(String attributeId, Collection<String> value)
Adds inspection additional information as map of attribute ids to values, were attribute ids predefined and values given as list of strings to help TeamCity match it by prefixMap<String,List<String>>
getAttributes()
Get current attributes mapString
getFilePath()
Gets file pathString
getInspectionId()
Gets inspection type idint
getLine()
String
getMessage()
Gets current instance descriptionvoid
setFilePath(String filePath)
Sets file path inspection instance corresponds tovoid
setInspectionId(String inspectionId)
Sets inspection type id.void
setLine(int line)
Sets line of filevoid
setMessage(String message)
Sets current instance description.String
toString()
-
-
-
Method Detail
-
getMessage
public String getMessage()
Gets current instance description- Returns:
- description
-
setMessage
public void setMessage(String message)
Sets current instance description. i.e. "Unused function 'getParam'" Required
-
getInspectionId
public String getInspectionId()
Gets inspection type id
-
setInspectionId
public void setInspectionId(String inspectionId)
Sets inspection type id. Same as InspectionTypeInfo's id- See Also:
Required
-
getFilePath
public String getFilePath()
Gets file path
-
setFilePath
public void setFilePath(String filePath)
Sets file path inspection instance corresponds to Required
-
getLine
public int getLine()
- Returns:
- line of file
-
setLine
public void setLine(int line)
Sets line of file Optional
-
addAttribute
public void addAttribute(String attributeId, Collection<String> value)
Adds inspection additional information as map of attribute ids to values, were attribute ids predefined and values given as list of strings to help TeamCity match it by prefix
-
getAttributes
@NotNull public Map<String,List<String>> getAttributes()
Get current attributes map- Returns:
- attributes map
-
-