Class Region
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.Region
A region within an artifact where a result was detected.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe length of the region in bytes.The zero-based offset from the beginning of the artifact of the first byte in the region.The length of the region in characters.The zero-based offset from the beginning of the artifact of the first character in the region.The column number of the character following the end of the region.The line number of the last character in the region.Encapsulates a message intended to be read by the end user.Key/value pairs that provide additional information about the object.Represents the contents of an artifact.Specifies the source language, if any, of the portion of the artifact specified by the region object.The column number of the first character in the region.The line number of the first character in the region.inthashCode()voidsetByteLength(Integer byteLength) The length of the region in bytes.voidsetByteOffset(Integer byteOffset) The zero-based offset from the beginning of the artifact of the first byte in the region.voidsetCharLength(Integer charLength) The length of the region in characters.voidsetCharOffset(Integer charOffset) The zero-based offset from the beginning of the artifact of the first character in the region.voidsetEndColumn(Integer endColumn) The column number of the character following the end of the region.voidsetEndLine(Integer endLine) The line number of the last character in the region.voidsetMessage(Message message) Encapsulates a message intended to be read by the end user.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidsetSnippet(ArtifactContent snippet) Represents the contents of an artifact.voidsetSourceLanguage(String sourceLanguage) Specifies the source language, if any, of the portion of the artifact specified by the region object.voidsetStartColumn(Integer startColumn) The column number of the first character in the region.voidsetStartLine(Integer startLine) The line number of the first character in the region.toString()withByteLength(Integer byteLength) withByteOffset(Integer byteOffset) withCharLength(Integer charLength) withCharOffset(Integer charOffset) withEndColumn(Integer endColumn) withEndLine(Integer endLine) withMessage(Message message) withProperties(PropertyBag properties) withSnippet(ArtifactContent snippet) withSourceLanguage(String sourceLanguage) withStartColumn(Integer startColumn) withStartLine(Integer startLine)
-
Constructor Details
-
Region
public Region()
-
-
Method Details
-
getStartLine
The line number of the first character in the region. -
setStartLine
The line number of the first character in the region. -
withStartLine
-
getStartColumn
The column number of the first character in the region. -
setStartColumn
The column number of the first character in the region. -
withStartColumn
-
getEndLine
The line number of the last character in the region. -
setEndLine
The line number of the last character in the region. -
withEndLine
-
getEndColumn
The column number of the character following the end of the region. -
setEndColumn
The column number of the character following the end of the region. -
withEndColumn
-
getCharOffset
The zero-based offset from the beginning of the artifact of the first character in the region. -
setCharOffset
The zero-based offset from the beginning of the artifact of the first character in the region. -
withCharOffset
-
getCharLength
The length of the region in characters. -
setCharLength
The length of the region in characters. -
withCharLength
-
getByteOffset
The zero-based offset from the beginning of the artifact of the first byte in the region. -
setByteOffset
The zero-based offset from the beginning of the artifact of the first byte in the region. -
withByteOffset
-
getByteLength
The length of the region in bytes. -
setByteLength
The length of the region in bytes. -
withByteLength
-
getSnippet
Represents the contents of an artifact. -
setSnippet
Represents the contents of an artifact. -
withSnippet
-
getMessage
Encapsulates a message intended to be read by the end user. -
setMessage
Encapsulates a message intended to be read by the end user. -
withMessage
-
getSourceLanguage
Specifies the source language, if any, of the portion of the artifact specified by the region object. -
setSourceLanguage
Specifies the source language, if any, of the portion of the artifact specified by the region object. -
withSourceLanguage
-
getProperties
Key/value pairs that provide additional information about the object. -
setProperties
Key/value pairs that provide additional information about the object. -
withProperties
-
toString
-
hashCode
public int hashCode() -
equals
-