edu.jhu.tmaj.beans.exfile
Class ExternalFolder

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

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

See Also:
Serialized Form

Field Summary
static ExternalFolder DUMMY_EXTERNAL_FOLDER
           
 
Constructor Summary
ExternalFolder(int id, java.lang.String folderName, ExternalFolder parentExternalFolder)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.io.File getAbsoluteDirectoryOnClient()
           
static java.io.File getAbsoluteDirectoryOnClient(ExternalFolder externalFolder)
           
 java.io.File getAbsoluteDirectoryOnServer()
           
static java.io.File getAbsoluteDirectoryOnServer(ExternalFolder externalFolder)
           
 int getID()
           
static ExternalFolder getInstance(java.lang.String folderName, ExternalFolder parentExternalFolder)
           
 java.lang.String getName()
           
 ExternalFolder getParent()
           
static java.io.File getRelativePath(ExternalFolder externalFolder)
           
 int hashCode()
           
 boolean isTopLevel()
           
 void setName(java.lang.String newName)
           
 java.lang.String toString()
           
 java.lang.String toStringAlt()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DUMMY_EXTERNAL_FOLDER

public static final ExternalFolder DUMMY_EXTERNAL_FOLDER
Constructor Detail

ExternalFolder

public ExternalFolder(int id,
                      java.lang.String folderName,
                      ExternalFolder parentExternalFolder)
Method Detail

getInstance

public static ExternalFolder getInstance(java.lang.String folderName,
                                         ExternalFolder parentExternalFolder)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String newName)

getParent

public ExternalFolder getParent()

getRelativePath

public static java.io.File getRelativePath(ExternalFolder externalFolder)

getID

public int getID()

getAbsoluteDirectoryOnServer

public static java.io.File getAbsoluteDirectoryOnServer(ExternalFolder externalFolder)

getAbsoluteDirectoryOnClient

public static java.io.File getAbsoluteDirectoryOnClient(ExternalFolder externalFolder)

getAbsoluteDirectoryOnServer

public java.io.File getAbsoluteDirectoryOnServer()

getAbsoluteDirectoryOnClient

public java.io.File getAbsoluteDirectoryOnClient()

toString

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

toStringAlt

public java.lang.String toStringAlt()

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

compareTo

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

isTopLevel

public boolean isTopLevel()