KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > collection > AutoRef


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  */

4 package org.objectweb.speedo.pobjects.collection;
5
6 import java.util.List JavaDoc;
7
8 /**
9  *
10  * @author chassase
11  */

12 public class AutoRef {
13     /**
14      * The identifier of the persistent class
15      */

16     private String JavaDoc identifier;
17     
18     /**
19      * A reference an AutoRef instance.
20      */

21     private AutoRef myRef;
22     
23     /**
24      * A collection of AutoRef instances.
25      */

26     private List JavaDoc myRefs;
27     
28     
29     /**
30      * @param identifier
31      */

32     public AutoRef(String JavaDoc identifier) {
33         this.identifier = identifier;
34     }
35     
36     /**
37      * @return Returns the myRef.
38      */

39     public AutoRef getMyRef() {
40         return myRef;
41     }
42     /**
43      * @param myRef The myRef to set.
44      */

45     public void setMyRef(AutoRef myRef) {
46         this.myRef = myRef;
47     }
48     /**
49      * @return Returns the myRefs.
50      */

51     public List JavaDoc getMyRefs() {
52         return myRefs;
53     }
54     /**
55      * @param myRefs The myRefs to set.
56      */

57     public void setMyRefs(List JavaDoc myRefs) {
58         this.myRefs = myRefs;
59     }
60     /**
61      * @return Returns the identifier.
62      */

63     public String JavaDoc getIdentifier() {
64         return identifier;
65     }
66 }
67
Popular Tags