Venice 0.751beta

nz.org.venice.quote
Interface EODQuoteFilter

All Known Subinterfaces:
IFileEODQuoteFilter
All Known Implementing Classes:
EzyChartQuoteFilter, GoogleEODQuoteFilter, InsightTraderQuoteFilter, MetaStock2QuoteFilter, MetastockBinaryEODFilter, 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

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

Returns:
the name of the filter

toEODQuote

public 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

public 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.751beta