01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * 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: */package org.objectweb.speedo.pobjects.relations;
18:
19: import java.util.Collection;
20: import java.util.ArrayList;
21:
22: /**
23: *
24: * @author S.Chassande-Barrioz
25: */
26: public class C {
27: private String name;
28:
29: private Long ident;
30:
31: private D d; // one one relation, reverse = c
32:
33: private Collection ds; // many many relation, reverse = cs
34:
35: private Collection nds; // one many relation, reverse = nc
36:
37: public C() {
38: }
39:
40: public C(String name) {
41: this .name = name;
42: this .ds = new ArrayList();
43: this .nds = new ArrayList();
44: }
45:
46: public String getName() {
47: return name;
48: }
49:
50: public void setName(String name) {
51: this .name = name;
52: }
53:
54: public Long getIdent() {
55: return ident;
56: }
57:
58: public void setIdent(Long ident) {
59: this .ident = ident;
60: }
61:
62: public D getD() {
63: return d;
64: }
65:
66: public void setD(D d) {
67: this .d = d;
68: }
69:
70: public Collection getDs() {
71: return ds;
72: }
73:
74: public void setDs(Collection ds) {
75: this .ds = ds;
76: }
77:
78: public Collection getNds() {
79: return nds;
80: }
81:
82: public void setNds(Collection nds) {
83: this.nds = nds;
84: }
85: }
|