Class ChildB
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ParentClass
-
- com.anaptecs.jeaf.junit.openapi.base.ChildB
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
- Direct Known Subclasses:
ChildBB
@Valid public class ChildB extends ParentClass
Multi
line
class
comment- Version:
- JEAF Release 1.6.x
- Author:
- JEAF Generator
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChildB.BuilderClass implements builder to create a new instance of classChildB.
-
Constructor Summary
Constructors Modifier Constructor Description protectedChildB()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedChildB(ChildB.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToComposition(ParentClass pComposition)Method adds the passed object tocomposition.voidaddToComposition(java.util.Collection<ParentClass> pComposition)Method adds all passed objects tocomposition.static ChildB.Builderbuilder()Method returns a new builder.static ChildB.Builderbuilder(ChildB pObject)Method creates a new builder and initialize it with the data from the passed object.static ChildB.Builderbuilder(java.lang.String pParentAttribute)Method creates a new builder and initializes it with the passed attributes.voidclearComposition()Method removes all objects fromcomposition.boolean[]getChildBAttribute()Method returns attributechildBAttribute.
A child attributejava.util.Set<ParentClass>getComposition()Method returns associationcomposition.
the compositionvoidremoveFromComposition(ParentClass pComposition)Method removes the passed object fromcomposition.voidsetChildBAttribute(boolean[] pChildBAttribute)Method sets attributechildBAttribute.
A child attributejava.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.-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.ParentClass
addToIbans, addToIbans, addToLegacyBankAccounts, addToLegacyBankAccounts, builder, clearIbans, clearLegacyBankAccounts, getIbans, getLegacyBankAccounts, getParentAttribute, getTheBankAccount, removeFromIbans, removeFromLegacyBankAccounts, setParentAttribute, setTheBankAccount, unsetTheBankAccount
-
-
-
-
Constructor Detail
-
ChildB
protected ChildB()
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.
-
ChildB
protected ChildB(ChildB.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 ChildB.Builder builder()
Method returns a new builder.- Returns:
ChildB.BuilderNew builder that can be used to create new ChildB objects.
-
builder
public static ChildB.Builder builder(ChildB 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:
ChildB.BuilderNew builder that can be used to create new ChildB objects. The method never returns null.
-
builder
public static ChildB.Builder builder(java.lang.String pParentAttribute)
Method creates a new builder and initializes it with the passed attributes.
-
getChildBAttribute
public boolean[] getChildBAttribute()
Method returns attributechildBAttribute.
A child attribute- Returns:
- boolean Value to which
childBAttributeis set.
-
setChildBAttribute
public void setChildBAttribute(boolean[] pChildBAttribute)
Method sets attributechildBAttribute.
A child attribute- Parameters:
pChildBAttribute- Value to whichchildBAttributeshould be set.
-
getComposition
public java.util.Set<ParentClass> getComposition()
Method returns associationcomposition.
the composition- Returns:
SetValue to whichcompositionis set. The method never returns null and the returned collection is modifiable.
-
addToComposition
public void addToComposition(ParentClass pComposition)
Method adds the passed object tocomposition.- Parameters:
pComposition- Object that should be added tocomposition. The parameter must not be null.
-
addToComposition
public void addToComposition(java.util.Collection<ParentClass> pComposition)
Method adds all passed objects tocomposition.- Parameters:
pComposition- Collection with all objects that should be added tocomposition. The parameter must not be null.
-
removeFromComposition
public void removeFromComposition(ParentClass pComposition)
Method removes the passed object fromcomposition.- Parameters:
pComposition- Object that should be removed fromcomposition. The parameter must not be null.
-
clearComposition
public void clearComposition()
Method removes all objects fromcomposition.
-
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 classParentClass- 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 classParentClass- Returns:
StringString representation of this object. The method never returns null.
-
-