KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > foedeployer > ejb > message > QuoteMessage


1 /*
2 * JBoss, the OpenSource EJB server
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7
8 package org.jboss.test.foedeployer.ejb.message;
9
10 /**
11  * Message that is used by MessageTraderBean
12  *
13  * @author <a HREF="mailto:aloubyansky@hotmail.com">Alex Loubyansky</a>
14  */

15 public class QuoteMessage
16    implements java.io.Serializable JavaDoc
17 {
18    static final long serialVersionUID = 5022315988003613747L;
19    // Attributes ------------------------------------------------------
20
private String JavaDoc quote;
21
22    // Constructor -----------------------------------------------------
23
public QuoteMessage(String JavaDoc quote)
24    {
25       this.quote = quote;
26    }
27
28    // Public ----------------------------------------------------------
29
public String JavaDoc getQuote()
30    {
31       return quote;
32    }
33
34    public void setQuote(String JavaDoc quote)
35    {
36       this.quote = quote;
37    }
38
39    public String JavaDoc toString()
40    {
41       return "[" + getQuote() + "]";
42    }
43 }
44
Popular Tags