|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.shop.checkout.Customer.CustomerBuilder
public static class Customer.CustomerBuilder
The CustomerBuilder.
| Constructor Summary | |
|---|---|
Customer.CustomerBuilder()
The no-argument constructor used for processing forms. |
|
Customer.CustomerBuilder(java.lang.Long uid,
java.lang.String ea)
Creates a new CustomerBuilder from the given user id and
email address. |
|
Customer.CustomerBuilder(User u)
Creates a new CustomerBuilder from the given User. |
|
| Method Summary | |
|---|---|
Customer |
build()
Builds a new Customer. |
java.lang.String |
getEmailAddress()
Returns the email address. |
java.lang.Long |
getUserId()
Returns the user id. |
java.lang.String |
getVATNumber()
Returns the VAT (value added tax) number. |
Customer.CustomerBuilder |
setEmailAddress(java.lang.String ea)
Sets the email address. |
Customer.CustomerBuilder |
setUserId(java.lang.Long uid)
Sets the user id. |
Customer.CustomerBuilder |
setVATNumber(java.lang.String vatn)
Sets the VAT (value added tax) number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Customer.CustomerBuilder()
public Customer.CustomerBuilder(User u)
CustomerBuilder from the given User.
u - the User.
java.lang.IllegalArgumentException - if the given User is null or an instance
of Everybody.
public Customer.CustomerBuilder(java.lang.Long uid,
java.lang.String ea)
CustomerBuilder from the given user id and
email address.
uid - the user id.ea - the email address.
java.lang.IllegalArgumentException - if the given email address is null.| Method Detail |
|---|
public final java.lang.Long getUserId()
public final Customer.CustomerBuilder setUserId(java.lang.Long uid)
uid - the user id to set.
this.public final java.lang.String getEmailAddress()
public final Customer.CustomerBuilder setEmailAddress(java.lang.String ea)
ea - the email address to set.
this.
java.lang.IllegalArgumentException - if the given email address is null.public final java.lang.String getVATNumber()
public final Customer.CustomerBuilder setVATNumber(java.lang.String vatn)
vatn - the VAT number to set.
this.public final Customer build()
Customer.
Customer.
java.lang.IllegalStateException - if the email address is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||