KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > relations > C


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.speedo.pobjects.relations;
19
20 import java.util.Collection JavaDoc;
21 import java.util.ArrayList JavaDoc;
22
23 /**
24  *
25  * @author S.Chassande-Barrioz
26  */

27 public class C {
28 private String JavaDoc name;
29
30     private Long JavaDoc ident;
31
32     private D d; // one one relation, reverse = c
33

34     private Collection JavaDoc ds; // many many relation, reverse = cs
35

36     private Collection JavaDoc nds; // one many relation, reverse = nc
37

38     public C () {
39     }
40
41     public C (String JavaDoc name) {
42         this.name = name;
43         this.ds = new ArrayList JavaDoc();
44         this.nds = new ArrayList JavaDoc();
45     }
46
47     public String JavaDoc getName() {
48         return name;
49     }
50
51     public void setName(String JavaDoc name) {
52         this.name = name;
53     }
54
55     public Long JavaDoc getIdent() {
56         return ident;
57     }
58
59     public void setIdent(Long JavaDoc ident) {
60         this.ident = ident;
61     }
62
63     public D getD() {
64         return d;
65     }
66
67     public void setD(D d) {
68         this.d = d;
69     }
70
71     public Collection JavaDoc getDs() {
72         return ds;
73     }
74
75     public void setDs(Collection JavaDoc ds) {
76         this.ds = ds;
77     }
78
79     public Collection JavaDoc getNds() {
80         return nds;
81     }
82
83     public void setNds(Collection JavaDoc nds) {
84         this.nds = nds;
85     }
86 }
87
Popular Tags