Class WeirdBooking
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdParent
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdBooking
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class WeirdBooking extends WeirdParent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWeirdBooking.BuilderClass implements builder to create a new instance of classWeirdBooking.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWeirdBooking()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedWeirdBooking(WeirdBooking.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToAdditionalBookings(ComplexBookingID pAdditionalBookings)Method adds the passed object toadditionalBookings.voidaddToAdditionalBookings(java.util.Collection<ComplexBookingID> pAdditionalBookings)Method adds all passed objects toadditionalBookings.voidaddToInventories(InventoryType pInventories)Method adds the passed object toinventories.voidaddToInventories(java.util.Collection<InventoryType> pInventories)Method adds all passed objects toinventories.static WeirdBooking.Builderbuilder()Method returns a new builder.static WeirdBooking.Builderbuilder(WeirdBooking pObject)Method creates a new builder and initialize it with the data from the passed object.static WeirdBooking.Builderbuilder(java.lang.String pSomeProperty, ComplexBookingID pComplexBooking, ComplexBookingID pBooking, VersionedObjectSoftLink pVersionedObjectSoftLink, int pChildProperty)Method creates a new builder and initializes it with the passed attributes.voidclearAdditionalBookings()Method removes all objects fromadditionalBookings.voidclearInventories()Method removes all objects frominventories.java.util.List<ComplexBookingID>getAdditionalBookings()Method returns associationadditionalBookings.
additional bookingsComplexBookingIDgetBooking()Method returns associationbooking.intgetChildProperty()Method returns attributechildProperty.java.util.Set<InventoryType>getInventories()Method returns associationinventories.BookinggetRealBooking()Method returns associationrealBooking.
the real bookingVersionedObjectSoftLinkgetVersionedObjectSoftLink()voidremoveFromAdditionalBookings(ComplexBookingID pAdditionalBookings)Method removes the passed object fromadditionalBookings.voidremoveFromInventories(InventoryType pInventories)Method removes the passed object frominventories.voidsetBooking(ComplexBookingID pBooking)Method sets associationbooking.voidsetChildProperty(int pChildProperty)Method sets attributechildProperty.voidsetRealBooking(Booking pRealBooking)Method sets associationrealBooking.
the real bookingvoidsetVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.voidunsetBooking()Method unsetsbooking.voidunsetRealBooking()Method unsetsrealBooking.voidunsetVersionedObjectSoftLink()Method unsetsversionedObjectSoftLink.-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.WeirdParent
addToComplexBookings, addToComplexBookings, builder, builder, clearComplexBookings, getComplexBooking, getComplexBookings, getSomeProperty, removeFromComplexBookings, setComplexBooking, setSomeProperty, unsetComplexBooking
-
-
-
-
Constructor Detail
-
WeirdBooking
protected WeirdBooking()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
WeirdBooking
protected WeirdBooking(WeirdBooking.Builder pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
builder
public static WeirdBooking.Builder builder()
Method returns a new builder.- Returns:
WeirdBooking.BuilderNew builder that can be used to create new WeirdBooking objects.
-
builder
public static WeirdBooking.Builder builder(WeirdBooking pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
WeirdBooking.BuilderNew builder that can be used to create new WeirdBooking objects. The method never returns null.
-
builder
public static WeirdBooking.Builder builder(java.lang.String pSomeProperty, ComplexBookingID pComplexBooking, ComplexBookingID pBooking, VersionedObjectSoftLink pVersionedObjectSoftLink, int pChildProperty)
Method creates a new builder and initializes it with the passed attributes.
-
getBooking
public ComplexBookingID getBooking()
Method returns associationbooking.- Returns:
ComplexBookingIDValue to whichbookingis set.
-
setBooking
public void setBooking(ComplexBookingID pBooking)
Method sets associationbooking.- Parameters:
pBooking- Value to whichbookingshould be set.
-
unsetBooking
public final void unsetBooking()
Method unsetsbooking.
-
getAdditionalBookings
public java.util.List<ComplexBookingID> getAdditionalBookings()
Method returns associationadditionalBookings.
additional bookings- Returns:
ListValue to whichadditionalBookingsis set. The method never returns null and the returned collection is modifiable.
-
addToAdditionalBookings
public void addToAdditionalBookings(ComplexBookingID pAdditionalBookings)
Method adds the passed object toadditionalBookings.- Parameters:
pAdditionalBookings- Object that should be added toadditionalBookings. The parameter must not be null.
-
addToAdditionalBookings
public void addToAdditionalBookings(java.util.Collection<ComplexBookingID> pAdditionalBookings)
Method adds all passed objects toadditionalBookings.- Parameters:
pAdditionalBookings- Collection with all objects that should be added toadditionalBookings. The parameter must not be null.
-
removeFromAdditionalBookings
public void removeFromAdditionalBookings(ComplexBookingID pAdditionalBookings)
Method removes the passed object fromadditionalBookings.- Parameters:
pAdditionalBookings- Object that should be removed fromadditionalBookings. The parameter must not be null.
-
clearAdditionalBookings
public void clearAdditionalBookings()
Method removes all objects fromadditionalBookings.
-
getVersionedObjectSoftLink
public VersionedObjectSoftLink getVersionedObjectSoftLink()
- Returns:
VersionedObjectSoftLinkValue to whichversionedObjectSoftLinkis set.
-
setVersionedObjectSoftLink
public void setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
- Parameters:
pVersionedObjectSoftLink- Value to whichversionedObjectSoftLinkshould be set.
-
unsetVersionedObjectSoftLink
public final void unsetVersionedObjectSoftLink()
Method unsetsversionedObjectSoftLink.
-
getChildProperty
public int getChildProperty()
Method returns attributechildProperty.- Returns:
- int Value to which
childPropertyis set.
-
setChildProperty
public void setChildProperty(int pChildProperty)
Method sets attributechildProperty.- Parameters:
pChildProperty- Value to whichchildPropertyshould be set.
-
getRealBooking
public Booking getRealBooking()
Method returns associationrealBooking.
the real booking- Returns:
BookingValue to whichrealBookingis set.
-
setRealBooking
public void setRealBooking(Booking pRealBooking)
Method sets associationrealBooking.
the real booking- Parameters:
pRealBooking- Value to whichrealBookingshould be set.
-
unsetRealBooking
public final void unsetRealBooking()
Method unsetsrealBooking.
-
getInventories
public java.util.Set<InventoryType> getInventories()
Method returns associationinventories.- Returns:
SetValue to whichinventoriesis set. The method never returns null and the returned collection is modifiable.
-
addToInventories
public void addToInventories(InventoryType pInventories)
Method adds the passed object toinventories.- Parameters:
pInventories- Object that should be added toinventories. The parameter must not be null.
-
addToInventories
public void addToInventories(java.util.Collection<InventoryType> pInventories)
Method adds all passed objects toinventories.- Parameters:
pInventories- Collection with all objects that should be added toinventories. The parameter must not be null.
-
removeFromInventories
public void removeFromInventories(InventoryType pInventories)
Method removes the passed object frominventories.- Parameters:
pInventories- Object that should be removed frominventories. The parameter must not be null.
-
clearInventories
public void clearInventories()
Method removes all objects frominventories.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Overrides:
toStringBuilderin classWeirdParent- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classWeirdParent- Returns:
StringString representation of this object. The method never returns null.
-
-