KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

9 public class JDOScope {
10
11     /** the scope identifier */
12     private int id;
13     
14     /** the scope label */
15     private String JavaDoc label;
16         
17     /**
18      * Default constructor.
19      * @param id The scope identifier.
20      * @param label The scope label.
21      */

22     public JDOScope(
23             int id,
24             String JavaDoc label)
25     {
26         this.id = id;
27         this.label = label;
28     }
29
30     /**
31      * Gets the id.
32      * @return Returns the id.
33      */

34     public int getId()
35     {
36         return id;
37     }
38     
39     /**
40      * Sets the id.
41      * @param id The id to set.
42      */

43     public void setId(int id)
44     {
45         this.id = id;
46     }
47     
48     /**
49      * Gets the label.
50      * @return Returns the label.
51      */

52     public String JavaDoc getLabel()
53     {
54         return label;
55     }
56     
57     /**
58      * Sets the label.
59      * @param label The label to set.
60      */

61     public void setLabel(String JavaDoc label)
62     {
63         this.label = label;
64     }
65
66 }
Popular Tags