sbrt.shell.text.fba
Class CatalystListFormatV1

java.lang.Object
  extended by sbrt.shell.text.fba.CatalystListFormatV1
All Implemented Interfaces:
CatalystListFormat, Format, Formatter<java.util.List<java.lang.String>>, Parser<java.util.List<java.lang.String>>, SimpleFormat<java.util.List<java.lang.String>>

public final class CatalystListFormatV1
extends java.lang.Object
implements CatalystListFormat

This class is a concrete implemenation of CatalystListFormat.

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

Constructor Summary
CatalystListFormatV1(CatalyzedFluxome fluxome)
          Constructs a new catalyst name collection format using the provided fluxome.
 
Method Summary
 java.lang.String format(java.util.List<java.lang.String> catalystNames)
          Returns a formatted string representation of the provided list of catalyst names.
 CatalystVerifier getEnzymeChecker()
          Returns the catalyst name verifier.
 CatalyzedFluxome getFluxome()
          Returns the fluxome used to verify catalyst names.
 WhitespaceListFormat<java.lang.String> getListFormat()
          Returns the format used for lists of catalyst names.
 java.util.List<java.lang.String> parse(java.lang.String catalystNames)
          Parses the provided string and returns the list of catalyst names it contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sbrt.shell.text.Formatter
format
 

Constructor Detail

CatalystListFormatV1

public CatalystListFormatV1(CatalyzedFluxome fluxome)
Constructs a new catalyst name collection format using the provided fluxome.

Parameters:
fluxome - the fluxome used to verify catalyst names.
Method Detail

getFluxome

public CatalyzedFluxome getFluxome()
Returns the fluxome used to verify catalyst names.

Specified by:
getFluxome in interface CatalystListFormat
Returns:
the fluxome used to verify catalyst names.

getListFormat

public WhitespaceListFormat<java.lang.String> getListFormat()
Returns the format used for lists of catalyst names.

Returns:
the format used for lists of catalyst names.

getEnzymeChecker

public CatalystVerifier getEnzymeChecker()
Returns the catalyst name verifier.

Returns:
the catalyst name verifier.

format

public java.lang.String format(java.util.List<java.lang.String> catalystNames)
Returns a formatted string representation of the provided list of catalyst names.

Specified by:
format in interface CatalystListFormat
Parameters:
catalystNames - the list of catalyst names to be formatted.
Returns:
a formatted string representation of the provided list of catalyst names.

parse

public java.util.List<java.lang.String> parse(java.lang.String catalystNames)
Parses the provided string and returns the list of catalyst names it contains.

Specified by:
parse in interface CatalystListFormat
Specified by:
parse in interface Parser<java.util.List<java.lang.String>>
Parameters:
catalystNames - the string to be parsed.
Returns:
the list of catalyst names contained in the provided string.