Class WeirdParent.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdParent.Builder
-
- Direct Known Subclasses:
WeirdBooking.Builder
- Enclosing class:
- WeirdParent
public static class WeirdParent.Builder extends java.lang.ObjectClass implements builder to create a new instance of classWeirdParent.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseWeirdParent.builder()instead of private constructor to create new builder.protectedBuilder(WeirdParent pObject)UseWeirdParent.builder(WeirdParent)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeirdParentbuild()Method creates a new instance of class WeirdParent.WeirdParentbuildValidated()Method creates a new validated instance of class WeirdParent.WeirdParent.BuildersetComplexBooking(ComplexBookingID pComplexBooking)Method sets associationcomplexBooking.WeirdParent.BuildersetComplexBookings(java.util.Set<ComplexBookingID> pComplexBookings)Method sets associationcomplexBookings.WeirdParent.BuildersetSomeProperty(java.lang.String pSomeProperty)Method sets attributesomeProperty.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseWeirdParent.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(WeirdParent pObject)
UseWeirdParent.builder(WeirdParent)instead of private constructor to create new builder.
-
-
Method Detail
-
setSomeProperty
public WeirdParent.Builder setSomeProperty(java.lang.String pSomeProperty)
Method sets attributesomeProperty.- Parameters:
pSomeProperty- Value to whichsomePropertyshould be set.- Returns:
WeirdParent.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComplexBooking
public WeirdParent.Builder setComplexBooking(ComplexBookingID pComplexBooking)
Method sets associationcomplexBooking.- Parameters:
pComplexBooking- Value to whichcomplexBookingshould be set.- Returns:
WeirdParent.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComplexBookings
public WeirdParent.Builder setComplexBookings(java.util.Set<ComplexBookingID> pComplexBookings)
Method sets associationcomplexBookings.- Parameters:
pComplexBookings- Collection to whichcomplexBookingsshould be set.- Returns:
WeirdParent.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public WeirdParent build()
Method creates a new instance of class WeirdParent. The object will be initialized with the values of the builder.- Returns:
- WeirdParent Created object. The method never returns null.
-
buildValidated
public WeirdParent buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class WeirdParent. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- WeirdParent 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.
-
-