public class Artifact extends Object
| Constructor and Description |
|---|
Artifact() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ArtifactContent |
getContents()
Represents the contents of an artifact.
|
Message |
getDescription()
Encapsulates a message intended to be read by the end user.
|
String |
getEncoding()
Specifies the encoding for an artifact object that refers to a text file.
|
Hashes |
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.
|
Date |
getLastModifiedTimeUtc()
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.
|
Integer |
getLength()
The length of the artifact in bytes.
|
ArtifactLocation |
getLocation()
Specifies the location of an artifact.
|
String |
getMimeType()
The MIME type (RFC 2045) of the artifact.
|
Integer |
getOffset()
The offset in bytes of the artifact within its containing artifact.
|
Integer |
getParentIndex()
Identifies the index of the immediate parent of the artifact, if this artifact is nested.
|
PropertyBag |
getProperties()
Key/value pairs that provide additional information about the object.
|
Set<Role> |
getRoles()
The role or roles played by the artifact in the analysis.
|
String |
getSourceLanguage()
Specifies the source language for any artifact object that refers to a text file that contains source code.
|
int |
hashCode() |
void |
setContents(ArtifactContent contents)
Represents the contents of an artifact.
|
void |
setDescription(Message description)
Encapsulates a message intended to be read by the end user.
|
void |
setEncoding(String encoding)
Specifies the encoding for an artifact object that refers to a text file.
|
void |
setHashes(Hashes hashes)
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.
|
void |
setLastModifiedTimeUtc(Date lastModifiedTimeUtc)
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.
|
void |
setLength(Integer length)
The length of the artifact in bytes.
|
void |
setLocation(ArtifactLocation location)
Specifies the location of an artifact.
|
void |
setMimeType(String mimeType)
The MIME type (RFC 2045) of the artifact.
|
void |
setOffset(Integer offset)
The offset in bytes of the artifact within its containing artifact.
|
void |
setParentIndex(Integer parentIndex)
Identifies the index of the immediate parent of the artifact, if this artifact is nested.
|
void |
setProperties(PropertyBag properties)
Key/value pairs that provide additional information about the object.
|
void |
setRoles(Set<Role> roles)
The role or roles played by the artifact in the analysis.
|
void |
setSourceLanguage(String sourceLanguage)
Specifies the source language for any artifact object that refers to a text file that contains source code.
|
String |
toString() |
Artifact |
withContents(ArtifactContent contents) |
Artifact |
withDescription(Message description) |
Artifact |
withEncoding(String encoding) |
Artifact |
withHashes(Hashes hashes) |
Artifact |
withLastModifiedTimeUtc(Date lastModifiedTimeUtc) |
Artifact |
withLength(Integer length) |
Artifact |
withLocation(ArtifactLocation location) |
Artifact |
withMimeType(String mimeType) |
Artifact |
withOffset(Integer offset) |
Artifact |
withParentIndex(Integer parentIndex) |
Artifact |
withProperties(PropertyBag properties) |
Artifact |
withRoles(Set<Role> roles) |
Artifact |
withSourceLanguage(String sourceLanguage) |
public Message getDescription()
public void setDescription(Message description)
public ArtifactLocation getLocation()
public void setLocation(ArtifactLocation location)
public Artifact withLocation(ArtifactLocation location)
public Integer getParentIndex()
public void setParentIndex(Integer parentIndex)
public Integer getOffset()
public void setOffset(Integer offset)
public Integer getLength()
public void setLength(Integer length)
public void setRoles(Set<Role> roles)
public String getMimeType()
public void setMimeType(String mimeType)
public ArtifactContent getContents()
public void setContents(ArtifactContent contents)
public Artifact withContents(ArtifactContent contents)
public String getEncoding()
public void setEncoding(String encoding)
public String getSourceLanguage()
public void setSourceLanguage(String sourceLanguage)
public Hashes getHashes()
public void setHashes(Hashes hashes)
public Date getLastModifiedTimeUtc()
public void setLastModifiedTimeUtc(Date lastModifiedTimeUtc)
public PropertyBag getProperties()
public void setProperties(PropertyBag properties)
public Artifact withProperties(PropertyBag properties)
Copyright © 2020 Contrast Security. All rights reserved.