FileDocCategorySizeDatePackage
Email.javaAPI DocphoneME MR2 API (J2ME)2438Wed May 02 18:00:42 BST 2007gov.nist.javax.sdp.fields

Email

public class Email extends SDPObject
Email address record. This code is in the public domain.

Fields Summary
protected String
userName
User name.
protected String
hostName
Host name.
Constructors Summary
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	Email retval = new Email();
	retval.userName = userName;
	retval.hostName = hostName;
	return retval;
    
public java.lang.Stringencode()
Gest the string encoded version of this object.

return
the encode string of this objects contents
since
v1.0

	return userName + Separators.AT + hostName;
    
public java.lang.StringgetHostName()
Gets the host name.

return
host name

	return hostName;
    
public java.lang.StringgetUserName()
Gets the user name.

return
the user name

	return userName;
    
public voidsetHostName(java.lang.String h)
Sets the host name member.

param
h the new host name

	hostName = h.trim();
    
public voidsetUserName(java.lang.String u)
Sets the user name member.

param
u the new user name

	userName = u;