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