|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.data.BasicData
org.proteios.core.data.OwnedData
org.proteios.core.data.SharedData
org.proteios.core.data.CommonData
org.proteios.core.data.AnnotatedData
org.proteios.core.data.FileData
public class FileData
This class holds information about a file.
File| Field Summary | |
|---|---|
static int |
MAX_MIMETYPE_LENGTH
|
static int |
MAX_URI_LENGTH
|
| Fields inherited from interface org.proteios.core.data.NameableData |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Constructor Summary | |
|---|---|
FileData()
|
|
| Method Summary | |
|---|---|
int |
getAction()
Get the value of the action variable for this FileData
object. |
Set<BioMaterialData> |
getBioMaterials()
|
long |
getCompressedSize()
Get the size in bytes that this FileData object
uses after compression. |
Date |
getCreated()
Get the creation date and time |
DirectoryData |
getDirectory()
Get the associated DirectoryData item. |
DiskUsageData |
getDiskUsage()
Get the DiskUsageData that this item use. |
FileTypeData |
getFileType()
Get the associated FileTypeData item. |
String |
getInternalName()
Get the internal name associated with this file. |
int |
getLocation()
Get the Location of this FileData |
String |
getMd5()
Get the MD5 hash of the file contents. |
String |
getMimeType()
Get the mime type of this FileData item. |
String |
getName()
Get the name of the item. |
long |
getSize()
Get the size in bytes for this FileData object. |
String |
getUniformResourceIdentifier()
Get the URI of this file. |
boolean |
isCompressed()
If the file is stored in a compressed format or not. |
void |
setAction(int action)
|
void |
setBioMaterials(Set<BioMaterialData> bioMaterials)
|
void |
setCompressed(boolean compressed)
Set the flag indicating that the file is stored in a compressed format. |
void |
setCompressedSize(long compressedSize)
Set the size in bytes that the file object uses after compression. |
void |
setCreated(Date created)
|
void |
setDirectory(DirectoryData directory)
|
void |
setFileType(FileTypeData fileType)
|
void |
setInternalName(String internalName)
|
void |
setLocation(int location)
|
void |
setMd5(String md5)
|
void |
setMimeType(String mimeType)
|
void |
setSize(long size)
|
void |
setUniformResourceIdentifier(String uniformResourceIdentifier)
Set the URI of this file. |
| Methods inherited from class org.proteios.core.data.AnnotatedData |
|---|
getAnnotationSet, setAnnotationSet |
| Methods inherited from class org.proteios.core.data.CommonData |
|---|
getDescription, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.data.SharedData |
|---|
getItemKey, getProjectKey, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.data.OwnedData |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.data.BasicData |
|---|
equals, getId, getVersion, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.data.OwnableData |
|---|
getOwner, setOwner |
| Methods inherited from interface org.proteios.core.data.IdentifiableData |
|---|
getId, getVersion |
| Field Detail |
|---|
public static final int MAX_MIMETYPE_LENGTH
public static final int MAX_URI_LENGTH
| Constructor Detail |
|---|
public FileData()
| Method Detail |
|---|
public Date getCreated()
CreationInterface
getCreated in interface CreationInterfacepublic void setCreated(Date created)
setCreated in interface CreationInterfacepublic String getName()
getName in interface NameableDatagetName in class CommonDataString with the name of the itempublic DiskUsageData getDiskUsage()
DiskConsumableDataDiskUsageData that this item use.
getDiskUsage in interface DiskConsumableDatapublic long getSize()
FileData object.
public void setSize(long size)
public String getMd5()
public void setMd5(String md5)
public int getAction()
FileData
object.
public void setAction(int action)
public int getLocation()
Location of this FileData
public void setLocation(int location)
public String getMimeType()
FileData item.
public void setMimeType(String mimeType)
public DirectoryData getDirectory()
DirectoryData item.
public void setDirectory(DirectoryData directory)
public FileTypeData getFileType()
FileTypeData item.
public void setFileType(FileTypeData fileType)
public boolean isCompressed()
public void setCompressed(boolean compressed)
compressed - boolean The the file is stored in a compressed format.public long getCompressedSize()
FileData object
uses after compression. If the file is not compressed, this value
is the same as getSize()
public void setCompressedSize(long compressedSize)
compressedSize - long The size in bytes that the file object uses after compression.public String getInternalName()
public void setInternalName(String internalName)
public String getUniformResourceIdentifier()
public void setUniformResourceIdentifier(String uniformResourceIdentifier)
public Set<BioMaterialData> getBioMaterials()
public void setBioMaterials(Set<BioMaterialData> bioMaterials)
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||