gov.nih.nci.caarray.services.fileupload
Class UploadFile

java.lang.Object
  extended by gov.nih.nci.caarray.services.fileupload.UploadFile
All Implemented Interfaces:
java.io.Serializable

public class UploadFile
extends java.lang.Object
implements java.io.Serializable

A value object that contains file names and it's types

Author:
gustafsons
See Also:
Serialized Form

Constructor Summary
UploadFile(java.lang.Long bioAssayId, java.lang.String fileName, UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
           
UploadFile(java.lang.String fileName, UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
           
 
Method Summary
 java.lang.Long getBioAssayId()
           
 java.lang.String getFileName()
           
 UploadFileTypes.MICROARRAY_FILE_TYPE getFileType()
           
 void setBioAssayId(java.lang.Long bioAssayId)
           
 void setFileName(java.lang.String fileName)
           
 void setFileType(UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadFile

public UploadFile(java.lang.String fileName,
                  UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
Parameters:
fileName -
fileType - This is for a file that is not attached to a given bioAssay

UploadFile

public UploadFile(java.lang.Long bioAssayId,
                  java.lang.String fileName,
                  UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
Parameters:
bioAssayId -
fileName -
fileType - This is for a file that is part of a bioAssay
Method Detail

getBioAssayId

public java.lang.Long getBioAssayId()
Returns:
Returns the bioAssayId.

setBioAssayId

public void setBioAssayId(java.lang.Long bioAssayId)
Parameters:
bioAssayId - The bioAssayId to set.

getFileName

public java.lang.String getFileName()
Returns:
Returns the fileName.

setFileName

public void setFileName(java.lang.String fileName)
Parameters:
fileName - The fileName to set.

getFileType

public UploadFileTypes.MICROARRAY_FILE_TYPE getFileType()
Returns:
Returns the fileType.

setFileType

public void setFileType(UploadFileTypes.MICROARRAY_FILE_TYPE fileType)
Parameters:
fileType - The fileType to set.