KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > stockquote > StockQuote


1 /*
2  * $Id: StockQuote.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.stockquote;
12
13 /**
14  * A stock Quote object that is crated from the xml returned from the
15  * http://www.webservicex.net/stockquote.asmx service
16  *
17  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
18  * @version $Revision: 3798 $
19  */

20 public class StockQuote
21 {
22     private String JavaDoc symbol;
23     private String JavaDoc last;
24     private String JavaDoc change;
25     private String JavaDoc open;
26     private String JavaDoc high;
27     private String JavaDoc low;
28     private String JavaDoc volume;
29     private String JavaDoc previousClose;
30     private String JavaDoc name;
31     private String JavaDoc date;
32
33     public String JavaDoc getSymbol()
34     {
35         return symbol;
36     }
37
38     public void setSymbol(String JavaDoc symbol)
39     {
40         this.symbol = symbol;
41     }
42
43     public String JavaDoc getLast()
44     {
45         return last;
46     }
47
48     public void setLast(String JavaDoc last)
49     {
50         this.last = last;
51     }
52
53     public String JavaDoc getChange()
54     {
55         return change;
56     }
57
58     public void setChange(String JavaDoc change)
59     {
60         this.change = change;
61     }
62
63     public String JavaDoc getOpen()
64     {
65         return open;
66     }
67
68     public void setOpen(String JavaDoc open)
69     {
70         this.open = open;
71     }
72
73     public String JavaDoc getHigh()
74     {
75         return high;
76     }
77
78     public void setHigh(String JavaDoc high)
79     {
80         this.high = high;
81     }
82
83     public String JavaDoc getLow()
84     {
85         return low;
86     }
87
88     public void setLow(String JavaDoc low)
89     {
90         this.low = low;
91     }
92
93     public String JavaDoc getVolume()
94     {
95         return volume;
96     }
97
98     public void setVolume(String JavaDoc volume)
99     {
100         this.volume = volume;
101     }
102
103     public String JavaDoc getPreviousClose()
104     {
105         return previousClose;
106     }
107
108     public void setPreviousClose(String JavaDoc previousClose)
109     {
110         this.previousClose = previousClose;
111     }
112
113     public String JavaDoc getName()
114     {
115         return name;
116     }
117
118     public void setName(String JavaDoc name)
119     {
120         this.name = name;
121     }
122
123     public String JavaDoc getDate()
124     {
125         return date;
126     }
127
128     public void setDate(String JavaDoc date)
129     {
130         this.date = date;
131     }
132
133     public String JavaDoc toString()
134     {
135         return "StockQuote{" + "symbol=" + symbol + ", name=" + name + ", date=" + date + ", last=" + last
136                + ", change=" + change + ", open=" + open + ", high=" + high + ", low=" + low + ", volume="
137                + volume + ", previousClose=" + previousClose + "}";
138     }
139
140 }
141
Popular Tags