com.jniwrapper.win32.mapi
Class MailContact

java.lang.Object
  extended by com.jniwrapper.win32.mapi.MailContact

public class MailContact
extends java.lang.Object

This class represents mail contacts such as senders and recipients.


Nested Class Summary
static class MailContact.Type
          This class specifies all possible roles of the mail contact such as the sender, direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.
 
Constructor Summary
MailContact(MailContact.Type contactType)
          Creates a new instance of the MailContact class.
MailContact(MailContact.Type contactType, java.lang.String address)
          Creates a new instance of the MailContact class by its type and address.
 
Method Summary
 java.lang.String getAddress()
          Returns the address of the contact.
 java.lang.String getName()
          Returns the name of the contact.
 MailContact.Type getType()
          Returns the type of the contact.
 void setAddress(java.lang.String address)
          Sets the address of the contact.
 void setName(java.lang.String name)
          Sets the name of the contact.
 void setType(MailContact.Type type)
          Specifies the type of the contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailContact

public MailContact(MailContact.Type contactType)
Creates a new instance of the MailContact class.

Parameters:
contactType - Defines the type of the mail contact such as the sender, direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.

MailContact

public MailContact(MailContact.Type contactType,
                   java.lang.String address)
Creates a new instance of the MailContact class by its type and address.

Parameters:
contactType - Defines the type of the mail contact such as the sender, direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.
address - Is the e-mail address or the inbound name. The address format is [address type][e-mail address]. For example, SMTP:M@X.COM.
Method Detail

getName

public java.lang.String getName()
Returns the name of the contact.


setName

public void setName(java.lang.String name)
Sets the name of the contact.

Parameters:
name - Is the e-mail adress or the inbound name.

getAddress

public java.lang.String getAddress()
Returns the address of the contact.


setAddress

public void setAddress(java.lang.String address)
Sets the address of the contact.

Parameters:
address - Is the e-mail address. The address format is [address type][e-mail address]. For example, SMTP:M@X.COM.

getType

public MailContact.Type getType()
Returns the type of the contact.

See Also:
MailContact.Type

setType

public void setType(MailContact.Type type)
Specifies the type of the contact.

Parameters:
type - Is one of the MailContact.Type constants.