KickJava   Java API By Example, From Geeks To Geeks.

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


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 D {
28
29     private Long JavaDoc ident;
30
31     private String JavaDoc name;
32
33     private C c; // one one relation, reverse = d
34

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

37     private C nc; // one many relation, reverse = nds
38

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