|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.vault.files.FileGroup
public class FileGroup
A FileGroup is a set of files that describe a single piece of
data. It contains one or more URL's and a type. It can
also be a directory.
This should also be immutable, so it is threadsafe.
All sub classes should be sure to maintain thread safety.
| Constructor Summary | |
|---|---|
FileGroup(URI[] urls,
FileType type)
|
|
FileGroup(URI[] urls,
FileType type,
Icon icon)
|
|
FileGroup(URI[] urls,
FileType type,
Icon icon,
String auxilaryData)
Create a group with some added information. |
|
| Method Summary | |
|---|---|
int |
compareTo(FileGroup f)
Compare the 2 objects. |
static FileGroup |
createUnlinkedFile(FileType type)
Create a FileGroup that is not linked to the file system (ie it is just a marker). |
boolean |
equals(Object obj)
2 file groups are equal if they have the same urls. |
String |
getAuxilaryData()
|
Icon |
getIcon()
|
FileType |
getType()
|
SortedSet<URI> |
getURL()
Return an unmodifiable set that contains a several alphabatized strings that represent fully qualified URL's. |
URI[] |
getURLArr()
|
int |
hashCode()
|
static boolean |
isLinked(FileGroup f)
Return true if this file is linked to the file system and not just a marker. |
static String |
makeUniqueString(FileGroup g)
For those times when we need a unique string... |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileGroup(URI[] urls,
FileType type,
Icon icon,
String auxilaryData)
urls - type - icon - auxilaryData -
public FileGroup(URI[] urls,
FileType type)
public FileGroup(URI[] urls,
FileType type,
Icon icon)
| Method Detail |
|---|
public String getAuxilaryData()
public FileType getType()
public SortedSet<URI> getURL()
public URI[] getURLArr()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic static String makeUniqueString(FileGroup g)
public int compareTo(FileGroup f)
compareTo in interface Comparable<FileGroup>public Icon getIcon()
public static FileGroup createUnlinkedFile(FileType type)
type -
public static boolean isLinked(FileGroup f)
f -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||