View Javadoc
1 package net.mlw.fball.bo;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 /***
7 * @author Matthew L. Wilson
8 * @version $Revision: 1.6 $ $Date: 2004/03/17 14:20:21 $
9 */
10 public class Player
11 {
12 private Double DEFAULT_FANTASY_VALUE = new Double(0);
13
14 private String id;
15 private String name;
16 private String position;
17 private Team currentTeam;
18 private String firstName, lastName;
19 private Double fantasyValue = DEFAULT_FANTASY_VALUE;
20
21 private Map providers = new HashMap();
22
23 public Player()
24 {
25
26 }
27
28 /***
29 * @return Returns the id.
30 */
31 public String getId()
32 {
33 return id;
34 }
35
36 /***
37 * @param id The id to set.
38 */
39 private void setId(String id)
40 {
41 this.id = id;
42 }
43
44 /***
45 * @return Returns the name.
46 */
47 public String getName()
48 {
49 return name;
50 }
51
52 /***
53 * @param name The name to set.
54 */
55 public void setName(String name)
56 {
57 this.name = name;
58 }
59
60 public void addProvider(String providerId, String playerProviderId)
61 {
62 providers.put(providerId, playerProviderId);
63 }
64
65 public String getProvider(String providerId)
66 {
67 return (String) providers.get(providerId);
68 }
69
70 /***
71 * @return Returns the providerIds.
72 */
73 private Map getProviders()
74 {
75 return providers;
76 }
77
78 /***
79 * @param providerIds The providerIds to set.
80 */
81 private void setProviders(Map providers)
82 {
83 this.providers = providers;
84 }
85
86 /***
87 * @return Returns the currentTeam.
88 */
89 public Team getCurrentTeam()
90 {
91 return currentTeam;
92 }
93
94 /***
95 * @param currentTeam The currentTeam to set.
96 */
97 public void setCurrentTeam(Team currentTeam)
98 {
99 this.currentTeam = currentTeam;
100 }
101
102 /***
103 * @return Returns the firstName.
104 */
105 public String getFirstName()
106 {
107 return firstName;
108 }
109
110 /***
111 * @param firstName The firstName to set.
112 */
113 public void setFirstName(String firstName)
114 {
115 this.firstName = firstName;
116 }
117
118 /***
119 * @return Returns the lastName.
120 */
121 public String getLastName()
122 {
123 return lastName;
124 }
125
126 /***
127 * @param lastName The lastName to set.
128 */
129 public void setLastName(String lastName)
130 {
131 this.lastName = lastName;
132 }
133
134 /***
135 * @return Returns the position.
136 */
137 public String getPosition()
138 {
139 return position;
140 }
141
142 /***
143 * @param position The position to set.
144 */
145 public void setPosition(String position)
146 {
147 this.position = position;
148 }
149
150 /*** @see java.lang.Object#toString()
151 */
152 public String toString()
153 {
154 return name + " [" + position + "]";
155 }
156
157 /***
158 * @return Returns the fantasyValue.
159 */
160 public Double getFantasyValue()
161 {
162 return fantasyValue;
163 }
164
165 /***
166 * @param fantasyValue The fantasyValue to set.
167 */
168 public void setFantasyValue(Double fantasyValue)
169 {
170 this.fantasyValue = fantasyValue;
171 }
172
173 }
This page was automatically generated by Maven