jgnash.net.security
Class AbstractYahooParser

java.lang.Object
  extended by jgnash.net.security.AbstractYahooParser
All Implemented Interfaces:
SecurityParser
Direct Known Subclasses:
YahooAusParser, YahooParser, YahooUKParser

public abstract class AbstractYahooParser
extends java.lang.Object
implements SecurityParser

An abstract CommodityParser for the Yahoo! financial web sites.

Version:
$Id$
Author:
Craig Cavanaugh

Field Summary
private  java.math.BigDecimal high
           
private static java.util.logging.Logger logger
           
private  java.math.BigDecimal low
           
private  java.math.BigDecimal price
           
private  long volume
           
 
Constructor Summary
AbstractYahooParser()
           
 
Method Summary
protected abstract  java.lang.String getBaseURL()
           
 java.math.BigDecimal getHigh()
           
 java.math.BigDecimal getLow()
           
 java.math.BigDecimal getPrice()
           
 long getVolume()
           
 boolean parse(SecurityNode node)
           
private  void setHigh(java.math.BigDecimal high)
           
private  void setLow(java.math.BigDecimal low)
           
private  void setPrice(java.math.BigDecimal price)
           
private  void setVolume(long volume)
           
protected abstract  boolean useISIN()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static java.util.logging.Logger logger

volume

private long volume

price

private java.math.BigDecimal price

high

private java.math.BigDecimal high

low

private java.math.BigDecimal low
Constructor Detail

AbstractYahooParser

public AbstractYahooParser()
Method Detail

getVolume

public long getVolume()
Specified by:
getVolume in interface SecurityParser

setVolume

private void setVolume(long volume)

getPrice

public java.math.BigDecimal getPrice()
Specified by:
getPrice in interface SecurityParser

setPrice

private void setPrice(java.math.BigDecimal price)

getHigh

public java.math.BigDecimal getHigh()
Specified by:
getHigh in interface SecurityParser

setHigh

private void setHigh(java.math.BigDecimal high)

getLow

public java.math.BigDecimal getLow()
Specified by:
getLow in interface SecurityParser

setLow

private void setLow(java.math.BigDecimal low)

getBaseURL

protected abstract java.lang.String getBaseURL()

useISIN

protected abstract boolean useISIN()

parse

public boolean parse(SecurityNode node)
              throws java.io.IOException
Specified by:
parse in interface SecurityParser
Throws:
java.io.IOException