Package org.sonar.api.batch.sensor.issue
Interface NewIssueLocation
- 
 public interface NewIssueLocationRepresents one issue location. SeeNewIssue.newLocation().- Since:
- 5.2
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intMESSAGE_MAX_SIZEMaximum number of characters in the message.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description NewIssueLocationat(TextRange location)Position in the file.NewIssueLocationmessage(java.lang.String message)Optional, but recommended, plain-text message for this location.NewIssueLocationmessage(java.lang.String message, java.util.List<NewMessageFormatting> newMessageFormatting)Optional, message that can be formatted on the frontend.
 Formats like Markdown or HTML are not supported.NewMessageFormattingnewMessageFormatting()Creates new instance of NewMessageFormattingNewIssueLocationon(InputComponent component)TheInputComponentthe issue location belongs to.
 
- 
- 
- 
Field Detail- 
MESSAGE_MAX_SIZEstatic final int MESSAGE_MAX_SIZE Maximum number of characters in the message.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
onNewIssueLocation on(InputComponent component) TheInputComponentthe issue location belongs to. Mandatory.
 - 
atNewIssueLocation at(TextRange location) Position in the file. Only applicable whenon(InputComponent)has been called with an InputFile. SeeInputFile.newRange(org.sonar.api.batch.fs.TextPointer, org.sonar.api.batch.fs.TextPointer)
 - 
messageNewIssueLocation message(java.lang.String message) Optional, but recommended, plain-text message for this location.
 Formats like Markdown or HTML are not supported. Size must not be greater thanMESSAGE_MAX_SIZEcharacters.
 - 
messageNewIssueLocation message(java.lang.String message, java.util.List<NewMessageFormatting> newMessageFormatting) Optional, message that can be formatted on the frontend.
 Formats like Markdown or HTML are not supported. Size must not be greater thanMESSAGE_MAX_SIZEcharacters.
 throwsIllegalArgumentExceptionif any of theNewMessageFormattinginstances passed in thenewMessageFormattingis that:
 - start is lesser than 0
 - end is lesser than start
 - end is greater than the size ofmessage- Since:
- 9.13
 
 - 
newMessageFormattingNewMessageFormatting newMessageFormatting() Creates new instance of NewMessageFormatting- Returns:
- builder for NewMessageFormatting
- Since:
- 9.13
 
 
- 
 
-