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.inheritance.filtered;
18:
19: import java.util.Collection;
20: import java.util.ArrayList;
21:
22: /**
23: *
24: * @author S.Chassande-Barrioz
25: */
26: public class Zoo {
27:
28: /**
29: * Identifier
30: */
31: private String name;
32:
33: private Collection animals;
34:
35: private Animal anAnimal;
36:
37: private Collection kangaroos;
38:
39: private Kangaroo aKangaroo;
40:
41: public Zoo(String name) {
42: this .name = name;
43: animals = new ArrayList();
44: kangaroos = new ArrayList();
45: anAnimal = null;
46: aKangaroo = null;
47: }
48:
49: public String getName() {
50: return name;
51: }
52:
53: public Collection getAnimals() {
54: return animals;
55: }
56:
57: public void setAnimals(Collection animals) {
58: this .animals = animals;
59: }
60:
61: public Animal getAnAnimal() {
62: return anAnimal;
63: }
64:
65: public void setAnAnimal(Animal anAnimal) {
66: this .anAnimal = anAnimal;
67: }
68:
69: public Collection getKangaroos() {
70: return kangaroos;
71: }
72:
73: public void setKangaroos(Collection kangaroos) {
74: this .kangaroos = kangaroos;
75: }
76:
77: public Kangaroo getaKangaroo() {
78: return aKangaroo;
79: }
80:
81: public void setaKangaroo(Kangaroo aKangaroo) {
82: this.aKangaroo = aKangaroo;
83: }
84: }
|