KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > ProjectWithArray


1 package org.apache.ojb.broker;
2
3 /**
4  *
5  * @author <a HREF="mailto:om@ppi.de">Oliver Matz</a>
6  * @version $Id: ProjectWithArray.java,v 1.1 2003/12/20 20:55:36 brj Exp $
7  */

8 public class ProjectWithArray
9 {
10   private int id;
11   private String JavaDoc title;
12   private String JavaDoc description;
13   private PersonWithArray[] persons;
14
15   public ProjectWithArray()
16   {
17   }
18
19   public ProjectWithArray(int pId, String JavaDoc pTitle, String JavaDoc pDescription)
20   {
21       id = pId;
22       title = pTitle;
23       description = pDescription;
24   }
25
26   public int getId()
27   {
28       return id;
29   }
30
31   public void setId(int id)
32   {
33       this.id = id;
34   }
35
36   public String JavaDoc getTitle()
37   {
38       return title;
39   }
40
41   public void setTitle(String JavaDoc title)
42   {
43       this.title = title;
44   }
45
46   public String JavaDoc getDescription()
47   {
48       return description;
49   }
50
51   public void setDescription(String JavaDoc description)
52   {
53       this.description = description;
54   }
55
56   public PersonWithArray[] getPersons()
57   {
58       return persons;
59   }
60
61   public void setPersons(PersonWithArray[] persons)
62   {
63       this.persons = persons;
64   }
65
66   public String JavaDoc toString()
67   {
68       String JavaDoc result = title;
69       result += " ";
70       result += persons;
71
72       return result;
73   }
74
75 }
76
Popular Tags