Class ChildBB.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ParentClass.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.ChildB.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.ChildBB.Builder
-
- Enclosing class:
- ChildBB
public static class ChildBB.Builder extends ChildB.Builder
Class implements builder to create a new instance of classChildBB.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseChildBB.builder()instead of private constructor to create new builder.protectedBuilder(ChildBB pObject)UseChildBB.builder(ChildBB)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ChildBBbuild()Method creates a new instance of class ChildBB.ChildBBbuildValidated()Method creates a new validated instance of class ChildBB.ChildBB.BuildersetChildBAttribute(boolean[] pChildBAttribute)Method sets attributeChildB.childBAttribute.ChildBB.BuildersetChildBBAttribute(java.lang.Long pChildBBAttribute)Method sets attributechildBBAttribute.ChildBB.BuildersetComposition(java.util.Set<ParentClass> pComposition)Method sets associationChildB.composition.ChildBB.BuildersetDeprecatedArray(byte[] pDeprecatedArray)Deprecated.ChildBB.BuildersetDeprecatedAttribute(int pDeprecatedAttribute)Deprecated.ChildBB.BuildersetDeprecatedBs(java.util.Set<ChildB> pDeprecatedBs)Deprecated.ChildBB.BuildersetDeprecatedParent(ParentClass pDeprecatedParent)Deprecated.ChildBB.BuildersetIbans(java.util.Set<IBAN> pIbans)Method sets associationParentClass.ibans.ChildBB.BuildersetLegacyBankAccounts(java.util.List<BankAccount> pLegacyBankAccounts)Deprecated.ChildBB.BuildersetParentAttribute(java.lang.String pParentAttribute)Method sets attributeParentClass.parentAttribute.ChildBB.BuildersetTheBankAccount(BankAccount pTheBankAccount)Deprecated.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseChildBB.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(ChildBB pObject)
UseChildBB.builder(ChildBB)instead of private constructor to create new builder.
-
-
Method Detail
-
setParentAttribute
public ChildBB.Builder setParentAttribute(java.lang.String pParentAttribute)
Method sets attributeParentClass.parentAttribute.- Overrides:
setParentAttributein classChildB.Builder- Parameters:
pParentAttribute- Value to whichParentClass.parentAttributeshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIbans
public ChildBB.Builder setIbans(java.util.Set<IBAN> pIbans)
Method sets associationParentClass.ibans.- Overrides:
setIbansin classChildB.Builder- Parameters:
pIbans- Collection to whichParentClass.ibansshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheBankAccount
@Deprecated public ChildBB.Builder setTheBankAccount(BankAccount pTheBankAccount)
Deprecated.Method sets associationParentClass.theBankAccount.- Overrides:
setTheBankAccountin classChildB.Builder- Parameters:
pTheBankAccount- Value to whichParentClass.theBankAccountshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLegacyBankAccounts
@Deprecated public ChildBB.Builder setLegacyBankAccounts(java.util.List<BankAccount> pLegacyBankAccounts)
Deprecated.Method sets associationParentClass.legacyBankAccounts.- Overrides:
setLegacyBankAccountsin classChildB.Builder- Parameters:
pLegacyBankAccounts- Collection to whichParentClass.legacyBankAccountsshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setChildBAttribute
public ChildBB.Builder setChildBAttribute(boolean[] pChildBAttribute)
Method sets attributeChildB.childBAttribute.- Overrides:
setChildBAttributein classChildB.Builder- Parameters:
pChildBAttribute- Value to whichChildB.childBAttributeshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComposition
public ChildBB.Builder setComposition(java.util.Set<ParentClass> pComposition)
Method sets associationChildB.composition.- Overrides:
setCompositionin classChildB.Builder- Parameters:
pComposition- Collection to whichChildB.compositionshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setChildBBAttribute
public ChildBB.Builder setChildBBAttribute(java.lang.Long pChildBBAttribute)
Method sets attributechildBBAttribute.- Parameters:
pChildBBAttribute- Value to whichchildBBAttributeshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDeprecatedAttribute
@Deprecated public ChildBB.Builder setDeprecatedAttribute(int pDeprecatedAttribute)
Deprecated.Method sets attributedeprecatedAttribute.- Parameters:
pDeprecatedAttribute- Value to whichdeprecatedAttributeshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDeprecatedBs
@Deprecated public ChildBB.Builder setDeprecatedBs(java.util.Set<ChildB> pDeprecatedBs)
Deprecated.Method sets associationdeprecatedBs.- Parameters:
pDeprecatedBs- Collection to whichdeprecatedBsshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDeprecatedParent
@Deprecated public ChildBB.Builder setDeprecatedParent(ParentClass pDeprecatedParent)
Deprecated.Method sets associationdeprecatedParent.- Parameters:
pDeprecatedParent- Value to whichdeprecatedParentshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDeprecatedArray
@Deprecated public ChildBB.Builder setDeprecatedArray(byte[] pDeprecatedArray)
Deprecated.Method sets attributedeprecatedArray.- Parameters:
pDeprecatedArray- Value to whichdeprecatedArrayshould be set.- Returns:
ChildBB.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public ChildBB build()
Method creates a new instance of class ChildBB. The object will be initialized with the values of the builder.- Overrides:
buildin classChildB.Builder- Returns:
- ChildBB Created object. The method never returns null.
-
buildValidated
public ChildBB buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class ChildBB. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classChildB.Builder- Returns:
- ChildBB 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.
-
-