public static class ChildB.Builder extends ParentClass.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
ChildB.builder() instead of private constructor to create new builder. |
protected |
Builder(ChildB pObject)
Use
ChildB.builder(ChildB) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
ChildB |
build()
Method creates a new instance of class ChildB.
|
ChildB |
buildValidated()
Method creates a new validated instance of class ChildB.
|
ChildB.Builder |
setChildBAttribute(boolean[] pChildBAttribute)
Method sets the attribute "childBAttribute".
|
ChildB.Builder |
setComposition(Set<ParentClass> pComposition)
Method sets the association "composition". the composition
|
ChildB.Builder |
setIbans(Set<IBAN> pIbans)
Method sets the association "ibans".
|
ChildB.Builder |
setParentAttribute(String pParentAttribute)
Method sets the attribute "parentAttribute".
|
protected Builder()
ChildB.builder() instead of private constructor to create new builder.protected Builder(ChildB pObject)
ChildB.builder(ChildB) instead of private constructor to create new builder.public ChildB.Builder setParentAttribute(String pParentAttribute)
setParentAttribute in class ParentClass.BuilderpParentAttribute - Value to which the attribute "parentAttribute" should be set.public ChildB.Builder setIbans(Set<IBAN> pIbans)
setIbans in class ParentClass.BuilderpIbans - Collection with objects to which the association should be set.public ChildB.Builder setChildBAttribute(boolean[] pChildBAttribute)
pChildBAttribute - Value to which the attribute "childBAttribute" should be set.public ChildB.Builder setComposition(Set<ParentClass> pComposition)
pComposition - Collection with objects to which the association should be set.public ChildB build()
build in class ParentClass.Builderpublic ChildB buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class ParentClass.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.