01: /* PAT: Persistent Applications Toolkit (patsystem.sf.net)
02: * Copyright (C) 2004, 2005 Tomasz Nazar, nthx at irc dot pl
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: * Full version of the license is /docs/LICENSE.txt
19: */
20: package org.nthx.pat.demo;
21:
22: import java.util.GregorianCalendar;
23:
24: /**
25: * @@pat.bo
26: *
27: * @version $Id: PersonalData.java 3725 2005-06-09 23:57:03Z nthx $
28: * @author nthx@users.sourceforge.net
29: */
30: public class PersonalData {
31: //--- Fields ----------------
32: private String login;
33: private String name;
34: private String surname;
35: private String www;
36:
37: private String[] performanceStrings;
38:
39: //--- Constructors ----------
40: public PersonalData() {
41: performanceStrings = new String[50];
42: for (int i = 0; i < performanceStrings.length; i++)
43: performanceStrings[i] = name + surname + login + www
44: + GregorianCalendar.getInstance().getTime();
45: }
46:
47: //--- Getters and Setters ---
48: public String getLogin() {
49: return login;
50: }
51:
52: void setLogin(String login) {
53: this .login = login;
54: }
55:
56: public String getName() {
57: return name;
58: }
59:
60: void setName(String name) {
61: this .name = name;
62: }
63:
64: public String getSurname() {
65: return surname;
66: }
67:
68: void setSurname(String surname) {
69: this .surname = surname;
70: }
71:
72: public String getWww() {
73: return www;
74: }
75:
76: void setWww(String www) {
77: this .www = www;
78: }
79:
80: //--- Implementation --------
81: public String toString() {
82: return "[PersonalData: " + name + ", " + surname + ", " + login
83: + "]";
84: }
85:
86: protected final static long serialVersionUID = 1L;
87: }
|