Class ChildB.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ParentClass.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.ChildB.Builder
-
- Direct Known Subclasses:
ChildBB.Builder
- Enclosing class:
- ChildB
public static class ChildB.Builder extends ParentClass.Builder
Class implements builder to create a new instance of classChildB.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseChildB.builder()instead of private constructor to create new builder.protectedBuilder(ChildB pObject)UseChildB.builder(ChildB)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ChildBbuild()Method creates a new instance of class ChildB.ChildBbuildValidated()Method creates a new validated instance of class ChildB.ChildB.BuildersetChildBAttribute(boolean[] pChildBAttribute)Method sets attributechildBAttribute.ChildB.BuildersetComposition(java.util.Set<ParentClass> pComposition)Method sets associationcomposition.ChildB.BuildersetIbans(java.util.Set<IBAN> pIbans)Method sets associationParentClass.ibans.ChildB.BuildersetLegacyBankAccounts(java.util.List<BankAccount> pLegacyBankAccounts)Deprecated.ChildB.BuildersetParentAttribute(java.lang.String pParentAttribute)Method sets attributeParentClass.parentAttribute.ChildB.BuildersetTheBankAccount(BankAccount pTheBankAccount)Deprecated.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseChildB.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(ChildB pObject)
UseChildB.builder(ChildB)instead of private constructor to create new builder.
-
-
Method Detail
-
setParentAttribute
public ChildB.Builder setParentAttribute(java.lang.String pParentAttribute)
Method sets attributeParentClass.parentAttribute.- Overrides:
setParentAttributein classParentClass.Builder- Parameters:
pParentAttribute- Value to whichParentClass.parentAttributeshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIbans
public ChildB.Builder setIbans(java.util.Set<IBAN> pIbans)
Method sets associationParentClass.ibans.- Overrides:
setIbansin classParentClass.Builder- Parameters:
pIbans- Collection to whichParentClass.ibansshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheBankAccount
@Deprecated public ChildB.Builder setTheBankAccount(BankAccount pTheBankAccount)
Deprecated.Method sets associationParentClass.theBankAccount.- Overrides:
setTheBankAccountin classParentClass.Builder- Parameters:
pTheBankAccount- Value to whichParentClass.theBankAccountshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLegacyBankAccounts
@Deprecated public ChildB.Builder setLegacyBankAccounts(java.util.List<BankAccount> pLegacyBankAccounts)
Deprecated.Method sets associationParentClass.legacyBankAccounts.- Overrides:
setLegacyBankAccountsin classParentClass.Builder- Parameters:
pLegacyBankAccounts- Collection to whichParentClass.legacyBankAccountsshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setChildBAttribute
public ChildB.Builder setChildBAttribute(boolean[] pChildBAttribute)
Method sets attributechildBAttribute.- Parameters:
pChildBAttribute- Value to whichchildBAttributeshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComposition
public ChildB.Builder setComposition(java.util.Set<ParentClass> pComposition)
Method sets associationcomposition.- Parameters:
pComposition- Collection to whichcompositionshould be set.- Returns:
ChildB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public ChildB build()
Method creates a new instance of class ChildB. The object will be initialized with the values of the builder.- Overrides:
buildin classParentClass.Builder- Returns:
- ChildB Created object. The method never returns null.
-
buildValidated
public ChildB buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class ChildB. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classParentClass.Builder- Returns:
- ChildB Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-