edu.jhu.tmaj.client.importer.images.data
Class FilenameData

java.lang.Object
  extended by edu.jhu.tmaj.client.importer.images.data.FilenameData
All Implemented Interfaces:
java.io.Serializable

public final class FilenameData
extends java.lang.Object
implements java.io.Serializable

A way of writing files that uniquely identifies a scan in TMAJ, while still conveying infomration that is useful to the end-user such as stain and bar code.

See Also:
Serialized Form

Field Summary
 int arrayBlockID
           
 java.lang.String barCode
           
 int cutNumber
           
 java.lang.String extraInformation
           
 java.lang.String filename
           
 ScanningMachine scanningMachine
           
 int scanNumber
           
 java.lang.String stain
           
 
Method Summary
static FilenameData getFilenameData(java.lang.String filename, java.lang.String properFormat)
          Gets a DirectoryNameInfo object out of a directory name by parsing useful information out of it.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filename

public final java.lang.String filename

arrayBlockID

public final int arrayBlockID

cutNumber

public final int cutNumber

scanNumber

public final int scanNumber

stain

public final java.lang.String stain

scanningMachine

public final ScanningMachine scanningMachine

barCode

public final java.lang.String barCode

extraInformation

public final java.lang.String extraInformation
Method Detail

getFilenameData

public static FilenameData getFilenameData(java.lang.String filename,
                                           java.lang.String properFormat)
                                    throws java.text.ParseException
Gets a DirectoryNameInfo object out of a directory name by parsing useful information out of it.

Parameters:
filename - the name of the directory or filename only, NOT the path. The should not include any backslashes or forwardslashes.
Throws:
java.text.ParseException

toString

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