1
2
3
4
5
6
7
8
9
10
11 package org.mule.samples.stockquote;
12
13 import java.io.Serializable;
14
15
16
17
18
19 public class StockQuote implements Serializable
20 {
21 private static final long serialVersionUID = -3579080716991795218L;
22
23 private String symbol;
24 private String last;
25 private String change;
26 private String open;
27 private String high;
28 private String low;
29 private String volume;
30 private String previousClose;
31 private String name;
32 private String date;
33
34 public String getSymbol()
35 {
36 return symbol;
37 }
38
39 public void setSymbol(String symbol)
40 {
41 this.symbol = symbol;
42 }
43
44 public String getLast()
45 {
46 return last;
47 }
48
49 public void setLast(String last)
50 {
51 this.last = last;
52 }
53
54 public String getChange()
55 {
56 return change;
57 }
58
59 public void setChange(String change)
60 {
61 this.change = change;
62 }
63
64 public String getOpen()
65 {
66 return open;
67 }
68
69 public void setOpen(String open)
70 {
71 this.open = open;
72 }
73
74 public String getHigh()
75 {
76 return high;
77 }
78
79 public void setHigh(String high)
80 {
81 this.high = high;
82 }
83
84 public String getLow()
85 {
86 return low;
87 }
88
89 public void setLow(String low)
90 {
91 this.low = low;
92 }
93
94 public String getVolume()
95 {
96 return volume;
97 }
98
99 public void setVolume(String volume)
100 {
101 this.volume = volume;
102 }
103
104 public String getPreviousClose()
105 {
106 return previousClose;
107 }
108
109 public void setPreviousClose(String previousClose)
110 {
111 this.previousClose = previousClose;
112 }
113
114 public String getName()
115 {
116 return name;
117 }
118
119 public void setName(String name)
120 {
121 this.name = name;
122 }
123
124 public String getDate()
125 {
126 return date;
127 }
128
129 public void setDate(String date)
130 {
131 this.date = date;
132 }
133
134 public String toString()
135 {
136 return LocaleMessage.getStockQuoteMessage(symbol, name, date, last, change, open, high,
137 low, volume, previousClose);
138 }
139 }