Class BusinessChild.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.techbase.TechParent.Builder
-
- com.anaptecs.jeaf.junit.openapi.techbase.BusinessParent.Builder
-
- com.anaptecs.jeaf.junit.openapi.techbase.BusinessChild.Builder
-
- Enclosing class:
- BusinessChild
public static class BusinessChild.Builder extends BusinessParent.Builder
Class implements builder to create a new instance of classBusinessChild.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseBusinessChild.builder()instead of private constructor to create new builder.protectedBuilder(BusinessChild pObject)UseBusinessChild.builder(BusinessChild)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessChildbuild()Method creates a new instance of class BusinessChild.BusinessChildbuildValidated()Method creates a new validated instance of class BusinessChild.BusinessChild.BuildersetChildAttribute(java.lang.String pChildAttribute)Method sets attributechildAttribute.BusinessChild.BuildersetParentAttribute(long pParentAttribute)Method sets attributeBusinessParent.parentAttribute.BusinessChild.BuildersetTechAttribute(java.lang.String pTechAttribute)Method sets attributeTechParent.techAttribute.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseBusinessChild.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(BusinessChild pObject)
UseBusinessChild.builder(BusinessChild)instead of private constructor to create new builder.
-
-
Method Detail
-
setTechAttribute
public BusinessChild.Builder setTechAttribute(java.lang.String pTechAttribute)
Method sets attributeTechParent.techAttribute.- Overrides:
setTechAttributein classBusinessParent.Builder- Parameters:
pTechAttribute- Value to whichTechParent.techAttributeshould be set.- Returns:
BusinessChild.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setParentAttribute
public BusinessChild.Builder setParentAttribute(long pParentAttribute)
Method sets attributeBusinessParent.parentAttribute.- Overrides:
setParentAttributein classBusinessParent.Builder- Parameters:
pParentAttribute- Value to whichBusinessParent.parentAttributeshould be set.- Returns:
BusinessChild.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setChildAttribute
public BusinessChild.Builder setChildAttribute(java.lang.String pChildAttribute)
Method sets attributechildAttribute.- Parameters:
pChildAttribute- Value to whichchildAttributeshould be set.- Returns:
BusinessChild.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public BusinessChild build()
Method creates a new instance of class BusinessChild. The object will be initialized with the values of the builder.- Overrides:
buildin classBusinessParent.Builder- Returns:
- BusinessChild Created object. The method never returns null.
-
buildValidated
public BusinessChild buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class BusinessChild. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classBusinessParent.Builder- Returns:
- BusinessChild 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.
-
-