Class Artifact
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.Artifact
A single artifact. In some cases, this artifact might be nested within another artifact.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRepresents the contents of an artifact.Encapsulates a message intended to be read by the end user.Specifies the encoding for an artifact object that refers to a text file.A dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function.The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.The length of the artifact in bytes.Specifies the location of an artifact.The MIME type (RFC 2045) of the artifact.The offset in bytes of the artifact within its containing artifact.Identifies the index of the immediate parent of the artifact, if this artifact is nested.Key/value pairs that provide additional information about the object.getRoles()The role or roles played by the artifact in the analysis.Specifies the source language for any artifact object that refers to a text file that contains source code.inthashCode()voidsetContents(ArtifactContent contents) Represents the contents of an artifact.voidsetDescription(Message description) Encapsulates a message intended to be read by the end user.voidsetEncoding(String encoding) Specifies the encoding for an artifact object that refers to a text file.voidA dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function.voidsetLastModifiedTimeUtc(Date lastModifiedTimeUtc) The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.voidThe length of the artifact in bytes.voidsetLocation(ArtifactLocation location) Specifies the location of an artifact.voidsetMimeType(String mimeType) The MIME type (RFC 2045) of the artifact.voidThe offset in bytes of the artifact within its containing artifact.voidsetParentIndex(Integer parentIndex) Identifies the index of the immediate parent of the artifact, if this artifact is nested.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidThe role or roles played by the artifact in the analysis.voidsetSourceLanguage(String sourceLanguage) Specifies the source language for any artifact object that refers to a text file that contains source code.toString()withContents(ArtifactContent contents) withDescription(Message description) withEncoding(String encoding) withHashes(Hashes hashes) withLastModifiedTimeUtc(Date lastModifiedTimeUtc) withLength(Integer length) withLocation(ArtifactLocation location) withMimeType(String mimeType) withOffset(Integer offset) withParentIndex(Integer parentIndex) withProperties(PropertyBag properties) withSourceLanguage(String sourceLanguage)
-
Constructor Details
-
Artifact
public Artifact()
-
-
Method Details
-
getDescription
Encapsulates a message intended to be read by the end user. -
setDescription
Encapsulates a message intended to be read by the end user. -
withDescription
-
getLocation
Specifies the location of an artifact. -
setLocation
Specifies the location of an artifact. -
withLocation
-
getParentIndex
Identifies the index of the immediate parent of the artifact, if this artifact is nested. -
setParentIndex
Identifies the index of the immediate parent of the artifact, if this artifact is nested. -
withParentIndex
-
getOffset
The offset in bytes of the artifact within its containing artifact. -
setOffset
The offset in bytes of the artifact within its containing artifact. -
withOffset
-
getLength
The length of the artifact in bytes. -
setLength
The length of the artifact in bytes. -
withLength
-
getRoles
The role or roles played by the artifact in the analysis. -
setRoles
The role or roles played by the artifact in the analysis. -
withRoles
-
getMimeType
The MIME type (RFC 2045) of the artifact. -
setMimeType
The MIME type (RFC 2045) of the artifact. -
withMimeType
-
getContents
Represents the contents of an artifact. -
setContents
Represents the contents of an artifact. -
withContents
-
getEncoding
Specifies the encoding for an artifact object that refers to a text file. -
setEncoding
Specifies the encoding for an artifact object that refers to a text file. -
withEncoding
-
getSourceLanguage
Specifies the source language for any artifact object that refers to a text file that contains source code. -
setSourceLanguage
Specifies the source language for any artifact object that refers to a text file that contains source code. -
withSourceLanguage
-
getHashes
A dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function. -
setHashes
A dictionary, each of whose keys is the name of a hash function and each of whose values is the hashed value of the artifact produced by the specified hash function. -
withHashes
-
getLastModifiedTimeUtc
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified. See "Date/time properties" in the SARIF spec for the required format. -
setLastModifiedTimeUtc
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified. See "Date/time properties" in the SARIF spec for the required format. -
withLastModifiedTimeUtc
-
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
-