View Javadoc
1 package net.mlw.fball.bo;
2
3 import java.util.Collection;
4 import java.util.HashMap;
5 import java.util.Map;
6
7 import org.apache.commons.lang.builder.ToStringBuilder;
8
9 /***
10 * @author Matthew L. Wilson
11 * @version $Revision: 1.6 $ $Date: 2004/04/01 21:51:07 $
12 */
13 public class League
14 {
15 /*** The primary key. **/
16 private String id;
17 /*** The name of this league. **/
18 private String name;
19 /*** Teh coaches for this league. **/
20 private Map coaches;
21
22 /***
23 * @return Returns the id.
24 */
25 public String getId()
26 {
27 return id;
28 }
29
30 /***
31 * @return Returns the name.
32 */
33 public String getName()
34 {
35 return name;
36 }
37
38 /***
39 * @param name The name to set.
40 */
41 public void setName(String name)
42 {
43 this.name = name;
44 }
45
46 public Collection getCoachesCollection()
47 {
48 return getCoaches().values();
49 }
50
51 /***
52 * @return Returns the coaches.
53 */
54 public Map getCoaches()
55 {
56 if (coaches == null)
57 {
58 coaches = new HashMap();
59 }
60 return coaches;
61 }
62
63 /***
64 * @param coaches The coaches to set.
65 */
66 private void setCoaches(Map coaches)
67 {
68 this.coaches = coaches;
69 }
70
71 /***
72 * @param id The id to set.
73 */
74 private void setId(String id)
75 {
76 this.id = id;
77 }
78
79 public String getType()
80 {
81 return null;
82 }
83
84 /*** @see java.lang.Object#toString()
85 */
86 public String toString()
87 {
88 return new ToStringBuilder(this).append(id).toString();
89 }
90 }
This page was automatically generated by Maven