KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > hello > NameString


1 /*
2  * $Id: NameString.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.hello;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * <code>NameString</code> TODO (document class)
17  *
18  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
19  * @version $Revision: 3798 $
20  */

21 public class NameString implements Serializable JavaDoc
22 {
23     /**
24      * Serial version
25      */

26     private static final long serialVersionUID = 7010138636008560022L;
27
28     private String JavaDoc name;
29     private String JavaDoc greeting;
30
31     public NameString(String JavaDoc name)
32     {
33         this.name = name;
34     }
35
36     /**
37      * @return Returns the name.
38      */

39     public String JavaDoc getName()
40     {
41         return name;
42     }
43
44     /**
45      * @param name The name to set.
46      */

47     public void setName(String JavaDoc name)
48     {
49         this.name = name;
50     }
51
52     /**
53      * @return Returns the greeting.
54      */

55     public String JavaDoc getGreeting()
56     {
57         return greeting;
58     }
59
60     /**
61      * @param greeting The greeting to set.
62      */

63     public void setGreeting(String JavaDoc greeting)
64     {
65         this.greeting = greeting;
66     }
67
68 }
69
Popular Tags