Class WeirdParent
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.WeirdParent
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
- Direct Known Subclasses:
WeirdBooking
@Valid public class WeirdParent extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWeirdParent.BuilderClass implements builder to create a new instance of classWeirdParent.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWeirdParent()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedWeirdParent(WeirdParent.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToComplexBookings(ComplexBookingID pComplexBookings)Method adds the passed object tocomplexBookings.voidaddToComplexBookings(java.util.Collection<ComplexBookingID> pComplexBookings)Method adds all passed objects tocomplexBookings.static WeirdParent.Builderbuilder()Method returns a new builder.static WeirdParent.Builderbuilder(WeirdParent pObject)Method creates a new builder and initialize it with the data from the passed object.static WeirdParent.Builderbuilder(java.lang.String pSomeProperty, ComplexBookingID pComplexBooking)Method creates a new builder and initializes it with the passed attributes.voidclearComplexBookings()Method removes all objects fromcomplexBookings.ComplexBookingIDgetComplexBooking()Method returns associationcomplexBooking.java.util.Set<ComplexBookingID>getComplexBookings()Method returns associationcomplexBookings.java.lang.StringgetSomeProperty()Method returns attributesomeProperty.voidremoveFromComplexBookings(ComplexBookingID pComplexBookings)Method removes the passed object fromcomplexBookings.voidsetComplexBooking(ComplexBookingID pComplexBooking)Method sets associationcomplexBooking.voidsetSomeProperty(java.lang.String pSomeProperty)Method sets attributesomeProperty.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.voidunsetComplexBooking()Method unsetscomplexBooking.
-
-
-
Constructor Detail
-
WeirdParent
protected WeirdParent()
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.
-
WeirdParent
protected WeirdParent(WeirdParent.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 WeirdParent.Builder builder()
Method returns a new builder.- Returns:
WeirdParent.BuilderNew builder that can be used to create new WeirdParent objects.
-
builder
public static WeirdParent.Builder builder(WeirdParent 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:
WeirdParent.BuilderNew builder that can be used to create new WeirdParent objects. The method never returns null.
-
builder
public static WeirdParent.Builder builder(java.lang.String pSomeProperty, ComplexBookingID pComplexBooking)
Method creates a new builder and initializes it with the passed attributes.
-
getSomeProperty
public java.lang.String getSomeProperty()
Method returns attributesomeProperty.- Returns:
StringValue to whichsomePropertyis set.
-
setSomeProperty
public void setSomeProperty(java.lang.String pSomeProperty)
Method sets attributesomeProperty.- Parameters:
pSomeProperty- Value to whichsomePropertyshould be set.
-
getComplexBooking
public ComplexBookingID getComplexBooking()
Method returns associationcomplexBooking.- Returns:
ComplexBookingIDValue to whichcomplexBookingis set.
-
setComplexBooking
public void setComplexBooking(ComplexBookingID pComplexBooking)
Method sets associationcomplexBooking.- Parameters:
pComplexBooking- Value to whichcomplexBookingshould be set.
-
unsetComplexBooking
public final void unsetComplexBooking()
Method unsetscomplexBooking.
-
getComplexBookings
public java.util.Set<ComplexBookingID> getComplexBookings()
Method returns associationcomplexBookings.- Returns:
SetValue to whichcomplexBookingsis set. The method never returns null and the returned collection is modifiable.
-
addToComplexBookings
public void addToComplexBookings(ComplexBookingID pComplexBookings)
Method adds the passed object tocomplexBookings.- Parameters:
pComplexBookings- Object that should be added tocomplexBookings. The parameter must not be null.
-
addToComplexBookings
public void addToComplexBookings(java.util.Collection<ComplexBookingID> pComplexBookings)
Method adds all passed objects tocomplexBookings.- Parameters:
pComplexBookings- Collection with all objects that should be added tocomplexBookings. The parameter must not be null.
-
removeFromComplexBookings
public void removeFromComplexBookings(ComplexBookingID pComplexBookings)
Method removes the passed object fromcomplexBookings.- Parameters:
pComplexBookings- Object that should be removed fromcomplexBookings. The parameter must not be null.
-
clearComplexBookings
public void clearComplexBookings()
Method removes all objects fromcomplexBookings.
-
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.- 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 classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-