View Javadoc

1   // %193722072:hoplugins.teamAnalyzer.vo%
2   package hoplugins.teamAnalyzer.vo;
3   
4   /***
5    * Team Object Class
6    *
7    * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
8    */
9   public class Team {
10      //~ Instance fields ----------------------------------------------------------------------------
11  
12      /*** Name of the team */
13      private String name;
14  
15      /*** Team id */
16      private int teamId;
17  
18      //~ Methods ------------------------------------------------------------------------------------
19  
20      /***
21       * DOCUMENT ME!
22       *
23       * @param string
24       */
25      public void setName(String string) {
26          name = string;
27      }
28  
29      /***
30       * DOCUMENT ME!
31       *
32       * @return
33       */
34      public String getName() {
35          return name;
36      }
37  
38      /***
39       * DOCUMENT ME!
40       *
41       * @param i
42       */
43      public void setTeamId(int i) {
44          teamId = i;
45      }
46  
47      /***
48       * DOCUMENT ME!
49       *
50       * @return
51       */
52      public int getTeamId() {
53          return teamId;
54      }
55  
56      /***
57       * Return description for the team
58       *
59       * @return
60       */
61      public String desc() {
62          return name + " " + teamId;
63      }
64  
65      /***
66       * toString methode: creates a String representation of the object
67       *
68       * @return the String representation
69       */
70      public String toString() {
71          return name;
72      }
73  }