edu.jhu.tmaj.beans.exfile
Class ExternalFile
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ExternalFile
public ExternalFile(int id,
ExternalFolder externalFolder,
java.lang.String filename,
long checksum)
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