sbrt.shell.text
Class FileFormatFormat

java.lang.Object
  extended by sbrt.shell.text.FileFormatFormat
All Implemented Interfaces:
Format, Formatter<FileFormat>, Parser<FileFormat>, SimpleFormat<FileFormat>

public class FileFormatFormat
extends java.lang.Object
implements SimpleFormat<FileFormat>

This class is used to represent formats for types of file formats.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
FileFormatFormat()
           
 
Method Summary
 java.lang.String format(FileFormat fileFormat)
          Returns a formatted string representation of the provided file format.
 FileFormat parse(java.lang.String source)
          Parses the provided string and returns its corresponding file format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFormatFormat

public FileFormatFormat()
Method Detail

format

public java.lang.String format(FileFormat fileFormat)
Returns a formatted string representation of the provided file format.

Specified by:
format in interface Formatter<FileFormat>
Parameters:
fileFormat - the file format to be formatted.
Returns:
a formatted string representation of the provided file format.

parse

public FileFormat parse(java.lang.String source)
Parses the provided string and returns its corresponding file format.

Specified by:
parse in interface Parser<FileFormat>
Parameters:
source - the string to be parsed.
Returns:
the file format corresponding to the provided string.