gov.nih.nci.caarray.common.data.fileupload2
Class FileType

java.lang.Object
  extended by gov.nih.nci.caarray.common.data.fileupload2.FileType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HybridizationFileType

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

This class represents an upload file type for array design and hybridization. A file type encapsulates such information as the creator of the file, e.g. GenePix, and the file extensions, e.g. .gpr. This file is intended for use by the new plug-in file parsing service, replacing the UploadFileTypes class. The client code will request a list of file types which type is this class and render the UI based on the file type. The instances of this class are intended to be configured and created by Spring's BeanFactory.

Author:
TranP
See Also:
Serialized Form

Field Summary
static java.lang.String CATEGORY_ARRAY_DESIGN
          Represents a file type that is to be parsed as an ArrayDesign.
static java.lang.String CATEGORY_DERIVED_BIOASSAY
          Represents a file type that is to be parsed as a DerivedBioAssay.
static java.lang.String CATEGORY_MAGEML
          Represents a file type that is to be parsed as MAGE-ML.
static java.lang.String CATEGORY_MEASURED_BIOASSAY
          Represents a file type that is to be parsed as a MeasuredBioAssay.
static java.lang.String CATEGORY_NON_PARSEABLE
          Represents a file type that is not be parseable but has a file extension to compare to given a file name.
static java.lang.String CATEGORY_OTHER
          Represents a file type for those files which have a file extension that don't match any of the file types's extensions from other categories.
protected  java.lang.String creatingSoftware
           
protected  java.lang.String creatingSoftwareVersion
           
protected  java.lang.String fileCategory
           
protected  java.lang.String fileExtension
           
protected  java.lang.String fileZipExtension
           
protected  java.lang.String id
           
protected  java.lang.String ojbConcreteClass
           
protected  java.lang.Boolean required
           
 
Constructor Summary
FileType()
           
 
Method Summary
 boolean equals(java.lang.Object otherFileType)
           
 java.lang.String getCreatingSoftware()
           
 java.lang.String getCreatingSoftwareVersion()
           
 java.lang.String getFileCategory()
           
 java.lang.String getFileExtension()
           
 java.lang.String getFileZipExtension()
           
 java.lang.String getId()
          Gets the unique identifier that identifies this file type.
 boolean getParseable()
           
 java.lang.Boolean getRequired()
           
 int hashCode()
           
 boolean isHybridizationFile()
           
 boolean matchType(java.lang.String fileName)
          Examines the file name is of this type by matching its normal extension and zip version extension.
 void setCreatingSoftware(java.lang.String creator)
           
 void setCreatingSoftwareVersion(java.lang.String creatingSoftwareVersion)
           
 void setFileCategory(java.lang.String fileCategory)
           
 void setFileExtension(java.lang.String extension)
           
 void setFileZipExtension(java.lang.String extension)
           
 void setId(java.lang.String id)
           
 void setRequired(java.lang.Boolean required)
           
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_MEASURED_BIOASSAY

public static final java.lang.String CATEGORY_MEASURED_BIOASSAY
Represents a file type that is to be parsed as a MeasuredBioAssay.

See Also:
Constant Field Values

CATEGORY_DERIVED_BIOASSAY

public static final java.lang.String CATEGORY_DERIVED_BIOASSAY
Represents a file type that is to be parsed as a DerivedBioAssay.

See Also:
Constant Field Values

CATEGORY_ARRAY_DESIGN

public static final java.lang.String CATEGORY_ARRAY_DESIGN
Represents a file type that is to be parsed as an ArrayDesign.

See Also:
Constant Field Values

CATEGORY_MAGEML

public static final java.lang.String CATEGORY_MAGEML
Represents a file type that is to be parsed as MAGE-ML.

See Also:
Constant Field Values

CATEGORY_NON_PARSEABLE

public static final java.lang.String CATEGORY_NON_PARSEABLE
Represents a file type that is not be parseable but has a file extension to compare to given a file name.

See Also:
Constant Field Values

CATEGORY_OTHER

public static final java.lang.String CATEGORY_OTHER
Represents a file type for those files which have a file extension that don't match any of the file types's extensions from other categories. The files having this category are not parseable.

See Also:
Constant Field Values

ojbConcreteClass

protected java.lang.String ojbConcreteClass

id

protected java.lang.String id

creatingSoftware

protected java.lang.String creatingSoftware

creatingSoftwareVersion

protected java.lang.String creatingSoftwareVersion

fileExtension

protected java.lang.String fileExtension

fileZipExtension

protected java.lang.String fileZipExtension

fileCategory

protected java.lang.String fileCategory

required

protected java.lang.Boolean required
Constructor Detail

FileType

public FileType()
Method Detail

getId

public final java.lang.String getId()
Gets the unique identifier that identifies this file type.

Returns:

setId

public final void setId(java.lang.String id)
Parameters:
id -

getCreatingSoftware

public final java.lang.String getCreatingSoftware()

setCreatingSoftware

public final void setCreatingSoftware(java.lang.String creator)

getFileExtension

public final java.lang.String getFileExtension()

setFileExtension

public final void setFileExtension(java.lang.String extension)

getFileCategory

public final java.lang.String getFileCategory()

setFileCategory

public final void setFileCategory(java.lang.String fileCategory)

getCreatingSoftwareVersion

public final java.lang.String getCreatingSoftwareVersion()

setCreatingSoftwareVersion

public final void setCreatingSoftwareVersion(java.lang.String creatingSoftwareVersion)

getRequired

public final java.lang.Boolean getRequired()
Returns:
Returns the required.

setRequired

public final void setRequired(java.lang.Boolean required)
Parameters:
required - The required to set.

getParseable

public final boolean getParseable()

isHybridizationFile

public final boolean isHybridizationFile()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getFileZipExtension

public java.lang.String getFileZipExtension()

setFileZipExtension

public void setFileZipExtension(java.lang.String extension)

matchType

public boolean matchType(java.lang.String fileName)
Examines the file name is of this type by matching its normal extension and zip version extension.

Parameters:
fileName -
Returns:

toString

public java.lang.String toString()
Returns the string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
string value of this object

equals

public boolean equals(java.lang.Object otherFileType)
Overrides:
equals in class java.lang.Object