KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > struts > activity > Event


1 package hero.struts.activity;
2
3
4 import java.io.Serializable JavaDoc;
5
6 public final class Event implements Serializable JavaDoc, java.lang.Cloneable JavaDoc {
7
8     // --------------------------------------------------- Instance Variables
9

10     /**
11      * The name of the node
12      */

13     private String JavaDoc name = null;
14
15     /**
16      * The state of the node
17      */

18     private String JavaDoc mail = null;
19
20
21     // ----------------------------------------------------------- Properties
22

23     /**
24      * Get the name
25      *@return String
26      */

27     public String JavaDoc getName() {
28         return (name);
29     }
30
31     /**
32      * Set the name.
33      * @param name
34      */

35     public void setName(String JavaDoc name) {
36         this.name = name;
37     }
38
39     /**
40      * Get the state
41      *@return String
42      */

43     public String JavaDoc getMail() {
44         return (mail);
45     }
46
47     /**
48      * Set the state.
49      * @param mail
50      */

51     public void setMail(String JavaDoc mail) {
52         this.mail = mail;
53     }
54
55     public Event(){}
56
57     public Object JavaDoc clone() throws java.lang.CloneNotSupportedException JavaDoc{
58     return super.clone();
59     }
60
61 }
62
Popular Tags