public class Artifact
extends java.lang.Object
| Constructor and Description |
|---|
Artifact() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
ArtifactContent |
getContents()
Represents the contents of an artifact.
|
Message |
getDescription()
Encapsulates a message intended to be read by the end user.
|
java.lang.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.
|
java.util.Date |
getLastModifiedTimeUtc()
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.
|
java.lang.Integer |
getLength()
The length of the artifact in bytes.
|
ArtifactLocation |
getLocation()
Specifies the location of an artifact.
|
java.lang.String |
getMimeType()
The MIME type (RFC 2045) of the artifact.
|
java.lang.Integer |
getOffset()
The offset in bytes of the artifact within its containing artifact.
|
java.lang.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.
|
java.util.Set<Role> |
getRoles()
The role or roles played by the artifact in the analysis.
|
java.lang.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(java.lang.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(java.util.Date lastModifiedTimeUtc)
The Coordinated Universal Time (UTC) date and time at which the artifact was most recently modified.
|
void |
setLength(java.lang.Integer length)
The length of the artifact in bytes.
|
void |
setLocation(ArtifactLocation location)
Specifies the location of an artifact.
|
void |
setMimeType(java.lang.String mimeType)
The MIME type (RFC 2045) of the artifact.
|
void |
setOffset(java.lang.Integer offset)
The offset in bytes of the artifact within its containing artifact.
|
void |
setParentIndex(java.lang.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(java.util.Set<Role> roles)
The role or roles played by the artifact in the analysis.
|
void |
setSourceLanguage(java.lang.String sourceLanguage)
Specifies the source language for any artifact object that refers to a text file that contains source code.
|
java.lang.String |
toString() |
public Message getDescription()
public void setDescription(Message description)
public ArtifactLocation getLocation()
public void setLocation(ArtifactLocation location)
public java.lang.Integer getParentIndex()
public void setParentIndex(java.lang.Integer parentIndex)
public java.lang.Integer getOffset()
public void setOffset(java.lang.Integer offset)
public java.lang.Integer getLength()
public void setLength(java.lang.Integer length)
public java.util.Set<Role> getRoles()
public void setRoles(java.util.Set<Role> roles)
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
public ArtifactContent getContents()
public void setContents(ArtifactContent contents)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public java.lang.String getSourceLanguage()
public void setSourceLanguage(java.lang.String sourceLanguage)
public Hashes getHashes()
public void setHashes(Hashes hashes)
public java.util.Date getLastModifiedTimeUtc()
public void setLastModifiedTimeUtc(java.util.Date lastModifiedTimeUtc)
public PropertyBag getProperties()
public void setProperties(PropertyBag properties)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object