jetbrains.buildServer.agent.inspections
Class InspectionInstance

java.lang.Object
  extended by jetbrains.buildServer.agent.inspections.InspectionInstance

public class InspectionInstance
extends java.lang.Object

Concrete defect, warning, error message Encapsulates location, description and various attributes


Constructor Summary
InspectionInstance()
           
 
Method Summary
 void addAttribute(java.lang.String attributeId, java.util.Collection<java.lang.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
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributes()
          Get current attributes map
 java.lang.String getFilePath()
          Gets file path
 java.lang.String getInspectionId()
          Gets inspection type id
 int getLine()
          Gets line of file
 java.lang.String getMessage()
          Gets current instance description
 void setFilePath(java.lang.String filePath)
          Sets file path inspection instance corresponds to

Required

 void setInspectionId(java.lang.String inspectionId)
          Sets inspection type id.
 void setLine(int line)
          Sets line of file

Optional

 void setMessage(java.lang.String message)
          Sets current instance description.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InspectionInstance

public InspectionInstance()
Method Detail

getMessage

public java.lang.String getMessage()
Gets current instance description

Returns:
description

setMessage

public void setMessage(java.lang.String message)
Sets current instance description. i.e. "Unused function 'getParam'"

Required


getInspectionId

public java.lang.String getInspectionId()
Gets inspection type id


setInspectionId

public void setInspectionId(java.lang.String inspectionId)
Sets inspection type id. Same as InspectionTypeInfo's id

See Also:

Required


getFilePath

public java.lang.String getFilePath()
Gets file path


setFilePath

public void setFilePath(java.lang.String filePath)
Sets file path inspection instance corresponds to

Required


getLine

public int getLine()
Gets line of file

Returns:

setLine

public void setLine(int line)
Sets line of file

Optional


addAttribute

public void addAttribute(java.lang.String attributeId,
                         java.util.Collection<java.lang.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

See Also:

example: PACKAGE => 'com' 'intellij' 'teamcity' 'some-package'


getAttributes

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributes()
Get current attributes map

Returns:
attributes map

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object