|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.Artifact
public class Artifact
Assets are composed of a set of artifacts. Three types of Artifact classes exist: FolderArtifacts, which are collections of other artifacts; FileArtifacts, which are single files; and URLArtifacts, which are single URLs.
an artifact representation of a URL,
an artifact that includes children artifacts| Field Summary | |
|---|---|
static java.lang.String |
FILE_DELIM
All artifacts use the forward slash delimiter. |
static java.lang.String |
TYPE_FILE
Artifact is a file type |
static java.lang.String |
TYPE_FOLDER
Artifact is a Folder type |
static java.lang.String |
TYPE_URL
Artifact is a URL type |
| Constructor Summary | |
|---|---|
Artifact()
|
|
| Method Summary | |
|---|---|
long |
getChecksum()
Provides the checksum associated with this artifact. |
long |
getCreationDate()
|
java.lang.String |
getLabel()
|
java.lang.String |
getMimeType()
|
java.lang.String |
getName()
The name of the artifact |
java.lang.String |
getPath()
Returns the path to the artifact from the root. |
ArtifactReference |
getReference()
|
long |
getSize()
The size of the artifact. |
java.lang.String |
getType()
The type of the artifact. |
void |
setChecksum(long checksum)
Sets the checksum for this artifact. |
void |
setCreationDate(long creationDate)
The date the artifact was cerated. |
void |
setLabel(java.lang.String label)
|
void |
setMimeType(java.lang.String mimeType)
|
void |
setName(java.lang.String name)
The name of the artifact. |
void |
setPath(java.lang.String path)
The path to the artifact. |
void |
setReference(ArtifactReference reference)
|
void |
setSize(long size)
The size of the artifact. |
void |
setType(java.lang.String type)
The artifact type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_FOLDER
public static final java.lang.String TYPE_URL
public static final java.lang.String TYPE_FILE
public static final java.lang.String FILE_DELIM
| Constructor Detail |
|---|
public Artifact()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getType()
TYPE_FILE,
TYPE_FOLDER,
TYPE_URLpublic void setType(java.lang.String type)
TYPE_FILE,
TYPE_FOLDER,
TYPE_URLpublic java.lang.String getPath()
public void setPath(java.lang.String path)
public long getSize()
public void setSize(long size)
public long getCreationDate()
public void setCreationDate(long creationDate)
public ArtifactReference getReference()
public void setReference(ArtifactReference reference)
reference - The reference to set.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The label to set.public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType - The mime type to set.public java.lang.String toString()
toString in class java.lang.Objectpublic long getChecksum()
-1 if none.public void setChecksum(long checksum)
checksum -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||