Class WeirdBooking.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdParent.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdBooking.Builder
-
- Enclosing class:
- WeirdBooking
public static class WeirdBooking.Builder extends WeirdParent.Builder
Class implements builder to create a new instance of classWeirdBooking.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseWeirdBooking.builder()instead of private constructor to create new builder.protectedBuilder(WeirdBooking pObject)UseWeirdBooking.builder(WeirdBooking)instead of private constructor to create new builder.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseWeirdBooking.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(WeirdBooking pObject)
UseWeirdBooking.builder(WeirdBooking)instead of private constructor to create new builder.
-
-
Method Detail
-
setSomeProperty
public WeirdBooking.Builder setSomeProperty(java.lang.String pSomeProperty)
Method sets attributeWeirdParent.someProperty.- Overrides:
setSomePropertyin classWeirdParent.Builder- Parameters:
pSomeProperty- Value to whichWeirdParent.somePropertyshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComplexBooking
public WeirdBooking.Builder setComplexBooking(ComplexBookingID pComplexBooking)
Method sets associationWeirdParent.complexBooking.- Overrides:
setComplexBookingin classWeirdParent.Builder- Parameters:
pComplexBooking- Value to whichWeirdParent.complexBookingshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setComplexBookings
public WeirdBooking.Builder setComplexBookings(java.util.Set<ComplexBookingID> pComplexBookings)
Method sets associationWeirdParent.complexBookings.- Overrides:
setComplexBookingsin classWeirdParent.Builder- Parameters:
pComplexBookings- Collection to whichWeirdParent.complexBookingsshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBooking
public WeirdBooking.Builder setBooking(ComplexBookingID pBooking)
Method sets associationbooking.- Parameters:
pBooking- Value to whichbookingshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAdditionalBookings
public WeirdBooking.Builder setAdditionalBookings(java.util.List<ComplexBookingID> pAdditionalBookings)
Method sets associationadditionalBookings.- Parameters:
pAdditionalBookings- Collection to whichadditionalBookingsshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setVersionedObjectSoftLink
public WeirdBooking.Builder setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
Method sets associationversionedObjectSoftLink.- Parameters:
pVersionedObjectSoftLink- Value to whichversionedObjectSoftLinkshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setChildProperty
public WeirdBooking.Builder setChildProperty(int pChildProperty)
Method sets attributechildProperty.- Parameters:
pChildProperty- Value to whichchildPropertyshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setRealBooking
public WeirdBooking.Builder setRealBooking(Booking pRealBooking)
Method sets associationrealBooking.- Parameters:
pRealBooking- Value to whichrealBookingshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setInventories
public WeirdBooking.Builder setInventories(java.util.Set<InventoryType> pInventories)
Method sets associationinventories.- Parameters:
pInventories- Collection to whichinventoriesshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setInventories
public WeirdBooking.Builder setInventories(InventoryType... pInventories)
Method sets associationinventories.- Parameters:
pInventories- Array with objects to whichinventoriesshould be set.- Returns:
WeirdBooking.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public WeirdBooking build()
Method creates a new instance of class WeirdBooking. The object will be initialized with the values of the builder.- Overrides:
buildin classWeirdParent.Builder- Returns:
- WeirdBooking Created object. The method never returns null.
-
buildValidated
public WeirdBooking buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class WeirdBooking. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classWeirdParent.Builder- Returns:
- WeirdBooking 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.
-
-