Rakesh API

org.rakeshv.xml.addressbook
Class Member

java.lang.Object
  extended by org.rakeshv.xml.addressbook.Member

public class Member
extends java.lang.Object

A bean that represents a member of an email group in the address book XML file.

Copyright 2003 Rakesh Vidyadharan

Version:
$Id: Member.java,v 1.3 2004/05/26 11:42:40 rakesh Exp $
Author:
Rakesh Vidyadharan 2003 February 21

Field Summary
private  java.lang.String mail
          The mail attribute of the member element in the address book.
private  java.lang.String nickname
          The nickname attribute of the member element in the address book.
 
Constructor Summary
Member()
          Default constructor.
Member(java.lang.String mail)
          Create a new instance with the specified email address.
Member(java.lang.String nickname, java.lang.String mail)
          Create a new instance with the specified nickname and email address.
 
Method Summary
 java.lang.String getMail()
          Return the value/reference of the mail.
 java.lang.String getNickname()
          Return the value/reference of the nickname.
 void setMail(java.lang.String mail)
          Set the value of mail.
 void setNickname(java.lang.String nickname)
          Set the value of nickname.
 java.lang.String toString()
          Over-ridden form of the method inherited from super-class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nickname

private java.lang.String nickname
The nickname attribute of the member element in the address book. The associated Person bean instance can be fetched from the AddressBook.persons Map using this variable.


mail

private java.lang.String mail
The mail attribute of the member element in the address book.

Constructor Detail

Member

public Member()
Default constructor. Use the mutator methods setNickname( String ) and setMail( String ) to populate the class fields.


Member

public Member(java.lang.String mail)
Create a new instance with the specified email address.

Parameters:
mail - - The email address of the member.

Member

public Member(java.lang.String nickname,
              java.lang.String mail)
Create a new instance with the specified nickname and email address.

Parameters:
nickname - - The nickname of the member.
mail - - The email address of the member.
Method Detail

toString

public java.lang.String toString()
Over-ridden form of the method inherited from super-class. Just return the nickname and mail values.

Overrides:
toString in class java.lang.Object
Returns:
String - The String representation of this class.

getNickname

public final java.lang.String getNickname()
Return the value/reference of the nickname.

Returns:
String - The value/reference of nickname.

setNickname

public final void setNickname(java.lang.String nickname)
Set the value of nickname.

Parameters:
nickname - - The value to set.

getMail

public final java.lang.String getMail()
Return the value/reference of the mail.

Returns:
String - The value/reference of mail.

setMail

public final void setMail(java.lang.String mail)
Set the value of mail.

Parameters:
mail - - The value to set.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan