Venice 0.7beta

org.mov.quote
Interface EODQuoteFilter

All Known Implementing Classes:
EzyChartQuoteFilter, InsightTraderQuoteFilter, MetaStock2QuoteFilter, MetaStockQuoteFilter, YahooEODQuoteFilter

public interface EODQuoteFilter

Provides an interface for converting to/from a text string containing a single end-of-day quote from/to the internal stock quote object.

Author:
Andrew Leppard

Method Summary
 java.lang.String getName()
          Return the name of the filter.
 EODQuote toEODQuote(java.lang.String quoteLine)
          Parse the given text string and returns the stock quote or null if it did not contain a valid quote.
 java.lang.String toString(EODQuote quote)
          Convert the given stock quote to a string line.
 

Method Detail

getName

java.lang.String getName()
Return the name of the filter.

Returns:
the name of the filter

toEODQuote

EODQuote toEODQuote(java.lang.String quoteLine)
                    throws QuoteFormatException
Parse the given text string and returns the stock quote or null if it did not contain a valid quote.

Parameters:
quoteLine - a single line of text containing a quote.
Returns:
the stock quote
Throws:
QuoteFormatException - if the quote could not be parsed

toString

java.lang.String toString(EODQuote quote)
Convert the given stock quote to a string line.

Parameters:
quote - a stock quote
Returns:
string version of the quote

Venice 0.7beta