org.apache.geronimo.samples.daytrader
Class MarketSummaryDataBean

java.lang.Object
  extended byorg.apache.geronimo.samples.daytrader.MarketSummaryDataBean
All Implemented Interfaces:
java.io.Serializable

public class MarketSummaryDataBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
MarketSummaryDataBean()
           
MarketSummaryDataBean(java.math.BigDecimal TSIA, java.math.BigDecimal openTSIA, double volume, java.util.Collection topGainers, java.util.Collection topLosers)
           
 
Method Summary
 java.math.BigDecimal getGainPercent()
           
 java.math.BigDecimal getOpenTSIA()
          Gets the openTSIA
static MarketSummaryDataBean getRandomInstance()
           
 java.util.Date getSummaryDate()
          Gets the summaryDate
 java.util.Collection getTopGainers()
          Gets the topGainers
 java.util.Collection getTopLosers()
          Gets the topLosers
 java.math.BigDecimal getTSIA()
          Gets the tSIA
 double getVolume()
          Gets the volume
 void print()
           
 void setOpenTSIA(java.math.BigDecimal openTSIA)
          Sets the openTSIA
 void setSummaryDate(java.util.Date summaryDate)
          Sets the summaryDate
 void setTopGainers(java.util.Collection topGainers)
          Sets the topGainers
 void setTopLosers(java.util.Collection topLosers)
          Sets the topLosers
 void setTSIA(java.math.BigDecimal tSIA)
          Sets the tSIA
 void setVolume(double volume)
          Sets the volume
 java.lang.String toHTML()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarketSummaryDataBean

public MarketSummaryDataBean()

MarketSummaryDataBean

public MarketSummaryDataBean(java.math.BigDecimal TSIA,
                             java.math.BigDecimal openTSIA,
                             double volume,
                             java.util.Collection topGainers,
                             java.util.Collection topLosers)
Method Detail

getRandomInstance

public static MarketSummaryDataBean getRandomInstance()

toString

public java.lang.String toString()

toHTML

public java.lang.String toHTML()

print

public void print()

getGainPercent

public java.math.BigDecimal getGainPercent()

getTSIA

public java.math.BigDecimal getTSIA()
Gets the tSIA

Returns:
Returns a BigDecimal

setTSIA

public void setTSIA(java.math.BigDecimal tSIA)
Sets the tSIA

Parameters:
tSIA - The tSIA to set

getOpenTSIA

public java.math.BigDecimal getOpenTSIA()
Gets the openTSIA

Returns:
Returns a BigDecimal

setOpenTSIA

public void setOpenTSIA(java.math.BigDecimal openTSIA)
Sets the openTSIA

Parameters:
openTSIA - The openTSIA to set

getVolume

public double getVolume()
Gets the volume

Returns:
Returns a BigDecimal

setVolume

public void setVolume(double volume)
Sets the volume

Parameters:
volume - The volume to set

getTopGainers

public java.util.Collection getTopGainers()
Gets the topGainers

Returns:
Returns a Collection

setTopGainers

public void setTopGainers(java.util.Collection topGainers)
Sets the topGainers

Parameters:
topGainers - The topGainers to set

getTopLosers

public java.util.Collection getTopLosers()
Gets the topLosers

Returns:
Returns a Collection

setTopLosers

public void setTopLosers(java.util.Collection topLosers)
Sets the topLosers

Parameters:
topLosers - The topLosers to set

getSummaryDate

public java.util.Date getSummaryDate()
Gets the summaryDate

Returns:
Returns a Date

setSummaryDate

public void setSummaryDate(java.util.Date summaryDate)
Sets the summaryDate

Parameters:
summaryDate - The summaryDate to set


Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.