KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > cap > JDOAction


1 /*
2  * Created on 29 oct. 2004
3  */

4 package org.objectweb.speedo.pobjects.cap;
5
6 /**
7  * @author mhoudu
8  */

9 public class JDOAction {
10
11     /** the action identifier */
12     private int id;
13     
14     /** the action label */
15     private String JavaDoc label;
16      
17     /** the action path */
18     private String JavaDoc path;
19
20     /**
21      * Default constructor.
22      * @param id The action identifier.
23      * @param label The action label.
24      * @param path The action path.
25      */

26     public JDOAction(
27             int id,
28             String JavaDoc label,
29             String JavaDoc path)
30     {
31         this.id = id;
32         this.label = label;
33         this.path = path;
34     }
35
36     /**
37      * Gets the id.
38      * @return Returns the id.
39      */

40     public int getId()
41     {
42         return id;
43     }
44     
45     /**
46      * Sets the id.
47      * @param id The id to set.
48      */

49     public void setId(int id)
50     {
51         this.id = id;
52     }
53     
54     /**
55      * Gets the label.
56      * @return Returns the label.
57      */

58     public String JavaDoc getLabel()
59     {
60         return label;
61     }
62     
63     /**
64      * Sets the label.
65      * @param label The label to set.
66      */

67     public void setLabel(String JavaDoc label)
68     {
69         this.label = label;
70     }
71     
72     /**
73      * Gets the path.
74      * @return Returns the path.
75      */

76     public String JavaDoc getPath()
77     {
78         return path;
79     }
80     
81     /**
82      * Sets the path.
83      * @param path The path to set.
84      */

85     public void setPath(String JavaDoc path)
86     {
87         this.path = path;
88     }
89
90 }
Popular Tags