|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.file.CaArrayFileSet
public class CaArrayFileSet
Provides functionality to handle multiple CaArrayFiles
as a single set.
Constructor Summary | |
---|---|
CaArrayFileSet()
File set. |
|
CaArrayFileSet(CaArrayFileSet baseFileSet)
Construct a new file set, with the same files and associated project. |
|
CaArrayFileSet(java.lang.Long projectId)
|
|
CaArrayFileSet(Project p)
|
Method Summary | |
---|---|
void |
add(CaArrayFile file)
Adds a file to the set. |
void |
addAll(java.util.Collection<CaArrayFile> fileCollection)
Adds a collection of files to this set. |
java.util.Set<CaArrayFile> |
getArrayDataFiles()
Get a subset of CaArrayFile objects that are array data file types. |
CaArrayFile |
getFile(java.io.File file)
Returns the CaArrayFile in the set corresponding to the given file object or null if no match. |
CaArrayFile |
getFile(java.lang.String name)
Returns the CaArrayFile in the set with the given name or null if no match. |
java.util.Set<CaArrayFile> |
getFiles()
Returns the contained files. |
java.util.Set<CaArrayFile> |
getFilesByType(FileType ft)
Get a subset of CaArrayFile objects with file type specified. |
java.lang.Long |
getProjectId()
|
FileStatus |
getStatus()
Returns the aggregate status of the file set. |
boolean |
isValidated()
Returns a value to indicate if the fileset has been validated or not. |
void |
pullUpValidationMessages()
Validation messages on files that have parents are copies to the respective parents. |
java.lang.String |
toString()
|
void |
updateStatus(FileStatus status)
Update the status of each file in this file set to the given status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CaArrayFileSet(Project p)
p
- project this file set is associated withpublic CaArrayFileSet(java.lang.Long projectId)
projectId
- Id of the project that this file set is associated withpublic CaArrayFileSet(CaArrayFileSet baseFileSet)
baseFileSet
- file set on which to base the new file setpublic CaArrayFileSet()
Method Detail |
---|
public java.lang.Long getProjectId()
public void add(CaArrayFile file)
file
- the file to addpublic java.util.Set<CaArrayFile> getFiles()
public java.util.Set<CaArrayFile> getFilesByType(FileType ft)
ft
- File type must not be null
public java.util.Set<CaArrayFile> getArrayDataFiles()
public FileStatus getStatus()
public void addAll(java.util.Collection<CaArrayFile> fileCollection)
fileCollection
- files to add.public void updateStatus(FileStatus status)
status
- the new status which each file in this set should have.public java.lang.String toString()
toString
in class java.lang.Object
public CaArrayFile getFile(java.io.File file)
CaArrayFile
in the set corresponding to the given file object or null if no match.
file
- get CaArrayFile
for this file.
CaArrayFile
.public CaArrayFile getFile(java.lang.String name)
CaArrayFile
in the set with the given name or null if no match.
name
- the name of the file to find
CaArrayFile
with given name, or null if no such file exists in this set.public void pullUpValidationMessages()
public boolean isValidated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |