@Valid public class WeirdBooking extends WeirdParent
| Modifier and Type | Class and Description |
|---|---|
static class |
WeirdBooking.Builder
Class implements builder to create a new instance of class
WeirdBooking. |
| Modifier | Constructor and Description |
|---|---|
protected |
WeirdBooking()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
WeirdBooking(WeirdBooking.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToAdditionalBookings(Collection<ComplexBookingID> pAdditionalBookings)
Method adds all passed objects to
additionalBookings. |
void |
addToAdditionalBookings(ComplexBookingID pAdditionalBookings)
Method adds the passed object to
additionalBookings. |
void |
addToInventories(Collection<InventoryType> pInventories)
Method adds all passed objects to
inventories. |
void |
addToInventories(InventoryType pInventories)
Method adds the passed object to
inventories. |
static WeirdBooking.Builder |
builder()
Method returns a new builder.
|
static WeirdBooking.Builder |
builder(String pSomeProperty,
ComplexBookingID pComplexBooking,
ComplexBookingID pBooking,
VersionedObjectSoftLink pVersionedObjectSoftLink,
int pChildProperty)
Method creates a new builder and initializes it with the passed attributes.
|
static WeirdBooking.Builder |
builder(WeirdBooking pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearAdditionalBookings()
Method removes all objects from
additionalBookings. |
void |
clearInventories()
Method removes all objects from
inventories. |
List<ComplexBookingID> |
getAdditionalBookings()
Method returns association
additionalBookings. |
ComplexBookingID |
getBooking()
Method returns association
booking. |
int |
getChildProperty()
Method returns attribute
childProperty. |
Set<InventoryType> |
getInventories()
Method returns association
inventories. |
Booking |
getRealBooking()
Method returns association
realBooking. |
VersionedObjectSoftLink |
getVersionedObjectSoftLink()
Method returns association
versionedObjectSoftLink. |
void |
removeFromAdditionalBookings(ComplexBookingID pAdditionalBookings)
Method removes the passed object from
additionalBookings. |
void |
removeFromInventories(InventoryType pInventories)
Method removes the passed object from
inventories. |
void |
setBooking(ComplexBookingID pBooking)
Method sets association
booking. |
void |
setChildProperty(int pChildProperty)
Method sets attribute
childProperty. |
void |
setRealBooking(Booking pRealBooking)
Method sets association
realBooking. |
void |
setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
Method sets association
versionedObjectSoftLink. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
void |
unsetBooking()
Method unsets
booking. |
void |
unsetRealBooking()
Method unsets
realBooking. |
void |
unsetVersionedObjectSoftLink()
Method unsets
versionedObjectSoftLink. |
addToComplexBookings, addToComplexBookings, builder, builder, clearComplexBookings, getComplexBooking, getComplexBookings, getSomeProperty, removeFromComplexBookings, setComplexBooking, setSomeProperty, unsetComplexBookingprotected WeirdBooking()
protected WeirdBooking(WeirdBooking.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static WeirdBooking.Builder builder()
WeirdBooking.Builder New builder that can be used to create new WeirdBooking objects.public static WeirdBooking.Builder builder(WeirdBooking pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.WeirdBooking.Builder New builder that can be used to create new WeirdBooking objects. The method never returns
null.public static WeirdBooking.Builder builder(String pSomeProperty, ComplexBookingID pComplexBooking, ComplexBookingID pBooking, VersionedObjectSoftLink pVersionedObjectSoftLink, int pChildProperty)
public ComplexBookingID getBooking()
booking.ComplexBookingID Value to which booking is set.public void setBooking(ComplexBookingID pBooking)
booking.pBooking - Value to which booking should be set.public final void unsetBooking()
booking.public List<ComplexBookingID> getAdditionalBookings()
additionalBookings.List Value to which additionalBookings is set. The method never returns
null and the returned collection is modifiable.public void addToAdditionalBookings(ComplexBookingID pAdditionalBookings)
additionalBookings.pAdditionalBookings - Object that should be added to additionalBookings. The parameter must not be
null.public void addToAdditionalBookings(Collection<ComplexBookingID> pAdditionalBookings)
additionalBookings.pAdditionalBookings - Collection with all objects that should be added to additionalBookings. The
parameter must not be null.public void removeFromAdditionalBookings(ComplexBookingID pAdditionalBookings)
additionalBookings.pAdditionalBookings - Object that should be removed from additionalBookings. The parameter must not
be null.public void clearAdditionalBookings()
additionalBookings.public VersionedObjectSoftLink getVersionedObjectSoftLink()
VersionedObjectSoftLink Value to which versionedObjectSoftLink is set.public void setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
pVersionedObjectSoftLink - Value to which versionedObjectSoftLink should be set.public final void unsetVersionedObjectSoftLink()
versionedObjectSoftLink.public int getChildProperty()
childProperty.childProperty is set.public void setChildProperty(int pChildProperty)
childProperty.pChildProperty - Value to which childProperty should be set.public Booking getRealBooking()
realBooking.Booking Value to which realBooking is set.public void setRealBooking(Booking pRealBooking)
realBooking.pRealBooking - Value to which realBooking should be set.public final void unsetRealBooking()
realBooking.public Set<InventoryType> getInventories()
inventories.Set Value to which inventories is set. The method never returns null and
the returned collection is modifiable.public void addToInventories(InventoryType pInventories)
inventories.pInventories - Object that should be added to inventories. The parameter must not be null.public void addToInventories(Collection<InventoryType> pInventories)
inventories.pInventories - Collection with all objects that should be added to inventories. The parameter must
not be null.public void removeFromInventories(InventoryType pInventories)
inventories.pInventories - Object that should be removed from inventories. The parameter must not be null.public void clearInventories()
inventories.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class WeirdParentStringBuilder StringBuilder representing this object. The method never returns null.public String toString()
toString in class WeirdParentString String representation of this object. The method never returns null.Copyright © 2023. All rights reserved.