edu.jhu.tmaj.beans.exfile
Class ExternalFile

java.lang.Object
  extended by edu.jhu.tmaj.beans.exfile.ExternalFile
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class ExternalFile
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

See Also:
Serialized Form

Constructor Summary
ExternalFile(int id, ExternalFolder externalFolder, java.lang.String filename, long checksum)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.io.File getAbsoluteFileOnClient()
           
 java.io.File getAbsoluteFileOnServer()
           
static java.io.File getAbsoluteFileOnServer(ExternalFolder externalFolder, java.lang.String filename)
           
 long getChecksum()
           
 java.lang.String getFilename()
           
 int getID()
           
 ExternalFolder getPath()
           
 java.io.File getRelativeFile()
           
 int hashCode()
           
 java.lang.String toString()
           
 java.lang.String toStringAlt()
           
static void validateFileName(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalFile

public ExternalFile(int id,
                    ExternalFolder externalFolder,
                    java.lang.String filename,
                    long checksum)
Method Detail

validateFileName

public static void validateFileName(java.lang.String filename)

getID

public int getID()

getPath

public ExternalFolder getPath()

getFilename

public java.lang.String getFilename()

getAbsoluteFileOnServer

public java.io.File getAbsoluteFileOnServer()

getRelativeFile

public java.io.File getRelativeFile()

getAbsoluteFileOnClient

public java.io.File getAbsoluteFileOnClient()

getAbsoluteFileOnServer

public static java.io.File getAbsoluteFileOnServer(ExternalFolder externalFolder,
                                                   java.lang.String filename)

getChecksum

public long getChecksum()

equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringAlt

public java.lang.String toStringAlt()

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable