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 voidaddAttribute(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 mapStringgetFilePath()Gets file pathStringgetInspectionId()Gets inspection type idintgetLine()StringgetMessage()Gets current instance descriptionvoidsetFilePath(String filePath)Sets file path inspection instance corresponds tovoidsetInspectionId(String inspectionId)Sets inspection type id.voidsetLine(int line)Sets line of filevoidsetMessage(String message)Sets current instance description.StringtoString()
-
-
-
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
-
-