public static class Company.Builder extends Partner.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Company.builder() instead of private constructor to create new builder. |
protected |
Builder(Company pObject)
Use
Company.builder(Company) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Company |
build()
Method creates a new instance of class Company.
|
Company |
buildValidated()
Method creates a new validated instance of class Company.
|
Company.Builder |
setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
Method sets the identifier for the object created using the builder.
|
Company.Builder |
setName(String pName)
Method sets the attribute "name".
|
Company.Builder |
setPostalAddresses(List<PostalAddress> pPostalAddresses)
Method sets the association "postalAddresses".
|
protected Builder()
Company.builder() instead of private constructor to create new builder.protected Builder(Company pObject)
Company.builder(Company) instead of private constructor to create new builder.public Company.Builder setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
setID in class Partner.Builderpublic Company.Builder setPostalAddresses(List<PostalAddress> pPostalAddresses)
setPostalAddresses in class Partner.BuilderpPostalAddresses - Collection with objects to which the association should be set.public Company.Builder setName(String pName)
pName - Value to which the attribute "name" should be set.public Company build()
build in class Partner.Builderpublic Company buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class Partner.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.