Venice 0.751beta

nz.org.venice.quote
Interface IDQuoteFilter

All Known Implementing Classes:
YahooIDQuoteFilter

public interface IDQuoteFilter

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

Author:
Andrew Leppard

Method Summary
 java.lang.String getName()
          Return the name of the filter.
 IDQuote toIDQuote(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(IDQuote 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

toIDQuote

public IDQuote toIDQuote(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(IDQuote quote)
Convert the given stock quote to a string line.

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

Venice 0.751beta