|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silanis.esl.sdk.builder.SenderInfoBuilder
public class SenderInfoBuilder
The SenderInfoBuilder class is a convenient class used to create and customize a sender.
Method Summary | |
---|---|
SenderInfo |
build()
Builds the actual SenderInfo with the specified values |
static SenderInfoBuilder |
newSenderInfo(String email)
Defines a new sender and uniquely identify him using his email address. |
SenderInfoBuilder |
withCompany(String company)
Set the Sender's company. |
SenderInfoBuilder |
withName(String firstName,
String lastName)
Set the Sender's first name and last name. |
SenderInfoBuilder |
withTitle(String title)
Set the sender's title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SenderInfoBuilder newSenderInfo(String email)
email
- the sender's email address uniquely identifying him. @size(min="6", max="255", valid email address)
public SenderInfoBuilder withName(String firstName, String lastName)
firstName
- sender's first name @size(min="1", max="64")lastName
- sender's last name @size(min="1", max="64")
public SenderInfoBuilder withCompany(String company)
company
- name of the company @size(max="255")
public SenderInfoBuilder withTitle(String title)
title
- the sender's title. @size(min="0", max="64")
public SenderInfo build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |