|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.domino.Recipient
public class Recipient
This class represents a recipient of a memo. Recipients are either constructed with a display name and address, or with an address entry.
Constructor Summary | |
---|---|
Recipient(RecipientType type,
java.lang.String sAddress)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
getAddress()
Gets the recipient address. |
static Recipient[] |
getRecipients(Recipient[] recipients,
RecipientType type)
Gets the recipients from the array by the specified type. |
RecipientType |
getRecipientType()
Gets the recipient type. |
static Recipient[] |
parse(java.lang.String sRecipients,
RecipientType type)
Parses semicolon (";") delimited string of recipients into an array of Recipient objects. |
static Recipient[] |
parse(java.lang.String sRecipients,
RecipientType type,
java.lang.String sDelimiter)
Parses string of recipients into an array of Recipient objects. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Recipient(RecipientType type, java.lang.String sAddress)
type
- the recipient type (must not be null
)sAddress
- the recipient address (must not be null
)Method Detail |
---|
public RecipientType getRecipientType()
public java.lang.String getAddress()
public static Recipient[] getRecipients(Recipient[] recipients, RecipientType type)
recipients
- the recipients to readtype
- the type of recipients to return
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare
true
if this object is the same as the obj argument; false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
public static Recipient[] parse(java.lang.String sRecipients, RecipientType type) throws AddressException
Recipient
objects.
sRecipients
- string of recipients to parsetype
- the type of recipients (may not be null
)
Recipient
objects or an empty array
AddressException
- if parse failspublic static Recipient[] parse(java.lang.String sRecipients, RecipientType type, java.lang.String sDelimiter) throws AddressException
Recipient
objects.
sRecipients
- string of recipients to parsetype
- the type of recipients (may not be null
)sDelimiter
- the delimiter (may not be null
)
Recipient
objects or an empty array
AddressException
- if parse fails
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |