View Javadoc

1   //////////////////////////////////////////////////////////////////////////////
2   // dexterIM - Instant Messaging Framework
3   // Copyright (C) 2003  Christoph Walcher
4   //
5   // This program is free software; you can redistribute it and/or modify
6   // it under the terms of the GNU General Public License as published by
7   // the Free Software Foundation; either version 2 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 General Public License for more details.
14  //
15  // You should have received a copy of the GNU General Public License
16  // along with this program; if not, write to the Free Software
17  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  //////////////////////////////////////////////////////////////////////////////
19  package net.sf.dexterim.core;
20  
21  /***
22   *
23   * @author  Christoph Walcher
24   */
25  public class Account {
26    private Object passport;
27    private Object identity;
28    private String friendlyName;
29  
30    /*** Creates a new instance of Account */
31    public Account() {
32    }
33  
34    /*** Getter for property password.
35    * @return Value of property password.
36    *
37    */
38    public java.lang.Object getPassport() {
39      return passport;
40    }
41  
42    /*** Setter for property password.
43    * @param password New value of property password.
44    *
45    */
46    public void setPassport(Object password) {
47      this.passport = password;
48    }
49  
50    /*** Getter for property friendlyName.
51    * @return Value of property friendlyName.
52    *
53    */
54    public String getFriendlyName() {
55      return friendlyName;
56    }
57  
58    /*** Setter for property friendlyName.
59    * @param friendlyName New value of property friendlyName.
60    *
61    */
62    public void setFriendlyName(String friendlyName) {
63      this.friendlyName = friendlyName;
64    }
65  
66    /*** Getter for property loginName.
67    * @return Value of property loginName.
68    *
69    */
70    public Object getIdentity() {
71      return identity;
72    }
73  
74    /*** Setter for property loginName.
75    * @param loginName New value of property loginName.
76    *
77    */
78    public void setIdentity(Object identity) {
79      this.identity = identity;
80    }
81  
82    public String toString() {
83      return "[Account " + getIdentity() + " " + getFriendlyName() + "]";
84    }
85  }