commit | author | age
|
4b8725
|
1 |
/* |
U |
2 |
Transit - Remote procedure calls made simple |
|
3 |
Copyright (c) 2012 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as published by |
|
7 |
the Free Software Foundation, either version 3 of the License, or |
|
8 |
(at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
|
|
19 |
package de.uhilger.transit.test; |
|
20 |
|
|
21 |
/** |
|
22 |
* Eine Klasse zum Testen der Klassenbibliothek Transit |
|
23 |
* |
|
24 |
* @author Copyright (c) Ulrich Hilger, http://uhilger.de |
|
25 |
* @author Published under the terms and conditions of |
|
26 |
* the <a href="http://www.gnu.org/licenses/agpl-3.0" target="_blank">GNU Affero General Public License</a> |
|
27 |
* |
|
28 |
* @version 1, September 16, 2012 |
|
29 |
*/ |
|
30 |
public class TestDatenKlasse { |
|
31 |
|
|
32 |
private int id; |
|
33 |
private String name; |
|
34 |
private String text; |
|
35 |
|
5e59ad
|
36 |
/** |
U |
37 |
* Ein Objekt der Klasse TestDatenKlasse erzeugen |
|
38 |
*/ |
4b8725
|
39 |
public TestDatenKlasse() { |
U |
40 |
super(); |
|
41 |
} |
|
42 |
|
5e59ad
|
43 |
/** |
U |
44 |
* Den Namen dieses Objekts ermitteln |
|
45 |
* @return Name dieses Objekts |
|
46 |
*/ |
4b8725
|
47 |
public String getName() { |
U |
48 |
return name; |
|
49 |
} |
|
50 |
|
5e59ad
|
51 |
/** |
U |
52 |
* Den Text ermitteln, der diesem Objekt zugeordnet ist |
|
53 |
* @return Text dieses Objekts |
|
54 |
*/ |
4b8725
|
55 |
public String getText() { |
U |
56 |
return text; |
|
57 |
} |
|
58 |
|
5e59ad
|
59 |
/** |
U |
60 |
* Die eindeutige Kennung dieses Objekts ermitteln |
|
61 |
* @return Die eindeutige Kennung dieses Objekts |
|
62 |
*/ |
4b8725
|
63 |
public int getId() { |
U |
64 |
return id; |
|
65 |
} |
|
66 |
|
5e59ad
|
67 |
/** |
U |
68 |
* Den Namen dieses Objekts setzen |
|
69 |
* @param name Name des Objekts |
|
70 |
*/ |
4b8725
|
71 |
public void setName(String name) { |
U |
72 |
this.name = name; |
|
73 |
} |
|
74 |
|
5e59ad
|
75 |
/** |
U |
76 |
* Den Text angeben, der diesem Objekt zugeordnet sein soll |
|
77 |
* @param text Text dieses Objekts |
|
78 |
*/ |
4b8725
|
79 |
public void setText(String text) { |
U |
80 |
this.text = text; |
|
81 |
} |
|
82 |
|
5e59ad
|
83 |
/** |
U |
84 |
* Die eindeutige Kennung dieses Objekts setzen |
|
85 |
* @param id Eindeutige Kennung dieses Objekts |
|
86 |
*/ |
4b8725
|
87 |
public void setId(int id) { |
U |
88 |
this.id = id; |
|
89 |
} |
|
90 |
|
|
91 |
} |