|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.Artifact
com.ibm.ram.client.RAMArtifact
public class RAMArtifact
Represents the metadata of an artifact. This class is intended to be sub-classed. getContents() returns an input stream to download the artifact content.
| Field Summary |
|---|
| Fields inherited from class com.ibm.ram.common.data.Artifact |
|---|
FILE_DELIM, TYPE_FILE, TYPE_FOLDER, TYPE_URL |
| Constructor Summary | |
|---|---|
protected |
RAMArtifact()
|
| Method Summary | |
|---|---|
java.io.InputStream |
downloadContents()
Returns the content from the server if not overwritten by sub class. |
RAMAsset |
getAsset()
|
long |
getCreationDate()
|
java.lang.String |
getLabel()
Returns the Label associated with the artifact |
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 |
setAsset(RAMAsset asset)
Set the internal asset |
void |
setCreationDate(long creationDate)
The date the artifact was cerated. |
void |
setLabel(java.lang.String label)
Sets the label associated with the artifact |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type associated with the artifact if one has been set. |
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. |
| Methods inherited from class com.ibm.ram.common.data.Artifact |
|---|
getChecksum, setChecksum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RAMArtifact()
| Method Detail |
|---|
public RAMAsset getAsset()
public void setAsset(RAMAsset asset)
public java.lang.String getName()
Artifact
getName in class Artifactpublic void setName(java.lang.String name)
Artifact
setName in class Artifactname - The file name of the artifactpublic java.lang.String getPath()
Artifact
getPath in class Artifactpublic void setPath(java.lang.String path)
Artifact
setPath in class Artifactpath - The path (not including the file name) for this artifact
public java.io.InputStream downloadContents()
throws RAMRuntimeException,
java.io.IOException
RAMRuntimeException
java.io.IOExceptionpublic long getCreationDate()
getCreationDate in class Artifactpublic java.lang.String getType()
Artifact
getType in class ArtifactArtifact.TYPE_FILE,
Artifact.TYPE_FOLDER,
Artifact.TYPE_URLpublic long getSize()
Artifact
getSize in class Artifactpublic java.lang.String getLabel()
getLabel in class Artifactpublic void setLabel(java.lang.String label)
setLabel in class Artifactlabel - public java.lang.String getMimeType()
getMimeType in class Artifactpublic void setMimeType(java.lang.String mimeType)
setMimeType in class Artifactlabel - The mime type to set.public ArtifactReference getReference()
getReference in class Artifactpublic void setCreationDate(long creationDate)
Artifact
setCreationDate in class Artifactpublic void setReference(ArtifactReference reference)
setReference in class Artifactreference - The reference to set.public void setSize(long size)
Artifact
setSize in class Artifactpublic void setType(java.lang.String type)
Artifact
setType in class ArtifactArtifact.TYPE_FILE,
Artifact.TYPE_FOLDER,
Artifact.TYPE_URL
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||