|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.file.FileType
public class FileType
Describes a type of file that can be uploaded to caArray. This is not a persistent bean - instances of this class are registered with FileTypeRegistry by platform plugins which know how to parse particular file types.
Constructor Summary | |
---|---|
FileType()
create an uninitialized file type. |
|
FileType(java.lang.String name,
FileCategory category,
boolean parsed,
boolean dataMatrix,
java.lang.String... extensions)
Constructs a file type with given properties. |
|
FileType(java.lang.String name,
FileCategory category,
boolean parsed,
java.lang.String... extensions)
Constructs a file type with given properties. |
Method Summary | |
---|---|
int |
compareTo(FileType ft)
|
boolean |
equals(java.lang.Object obj)
|
FileCategory |
getCategory()
|
java.util.Set<java.lang.String> |
getExtensions()
|
java.lang.String |
getName()
|
int |
hashCode()
|
boolean |
isArrayData()
|
boolean |
isArrayDesign()
|
boolean |
isDataMatrix()
|
boolean |
isDerivedArrayData()
|
boolean |
isMageTab()
|
boolean |
isParseableArrayDesign()
|
boolean |
isParseableData()
|
boolean |
isParsed()
|
boolean |
isRawArrayData()
|
void |
setCategory(FileCategory category)
|
void |
setDataMatrix(boolean dataMatrix)
|
void |
setExtensions(java.util.Set<java.lang.String> extensions)
|
void |
setName(java.lang.String name)
|
void |
setParsed(boolean parsed)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileType()
public FileType(java.lang.String name, FileCategory category, boolean parsed, java.lang.String... extensions)
name
- type name. Names should be unique across all types registered in the type registryextensions
- the extensions associated with this type. files whose names end in these extensions should be
considered to have this type.category
- the category to which files of this type belong.parsed
- whether this type can be parsedpublic FileType(java.lang.String name, FileCategory category, boolean parsed, boolean dataMatrix, java.lang.String... extensions)
name
- type name. Names should be unique across all types registered in the type registryextensions
- the extensions associated with this type. files whose names end in these extensions should be
considered to have this type.category
- the category to which files of this type belong.parsed
- whether this type can be parseddataMatrix
- whether files of this type are data matricesMethod Detail |
---|
public boolean isDataMatrix()
public void setDataMatrix(boolean dataMatrix)
dataMatrix
- the dataMatrix to setpublic java.util.Set<java.lang.String> getExtensions()
public void setExtensions(java.util.Set<java.lang.String> extensions)
extensions
- the extensions to setpublic FileCategory getCategory()
public void setCategory(FileCategory category)
category
- the category to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic boolean isParsed()
public void setParsed(boolean parsed)
parsed
- the parsed to setpublic boolean isArrayDesign()
public boolean isParseableArrayDesign()
public boolean isParseableData()
public boolean isDerivedArrayData()
public boolean isRawArrayData()
public boolean isMageTab()
public boolean isArrayData()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(FileType ft)
compareTo
in interface java.lang.Comparable<FileType>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |