Class ParentClass
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ParentClass
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class ParentClass 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 classParentClass.BuilderClass implements builder to create a new instance of classParentClass.
-
Constructor Summary
Constructors Modifier Constructor Description protectedParentClass()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedParentClass(ParentClass.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddToIbans(IBAN pIbans)Method adds the passed object toibans.voidaddToIbans(java.util.Collection<IBAN> pIbans)Method adds all passed objects toibans.voidaddToLegacyBankAccounts(BankAccount pLegacyBankAccounts)Deprecated.voidaddToLegacyBankAccounts(java.util.Collection<BankAccount> pLegacyBankAccounts)Deprecated.static ParentClass.Builderbuilder()Method returns a new builder.static ParentClass.Builderbuilder(ParentClass pObject)Method creates a new builder and initialize it with the data from the passed object.static ParentClass.Builderbuilder(java.lang.String pParentAttribute)Method creates a new builder and initializes it with the passed attributes.voidclearIbans()Method removes all objects fromibans.voidclearLegacyBankAccounts()Deprecated.java.util.Set<IBAN>getIbans()Method returns associationibans.java.util.List<BankAccount>getLegacyBankAccounts()Deprecated.java.lang.StringgetParentAttribute()Method returns attributeparentAttribute.BankAccountgetTheBankAccount()Deprecated.voidremoveFromIbans(IBAN pIbans)Method removes the passed object fromibans.voidremoveFromLegacyBankAccounts(BankAccount pLegacyBankAccounts)Deprecated.voidsetParentAttribute(java.lang.String pParentAttribute)Method sets attributeparentAttribute.voidsetTheBankAccount(BankAccount pTheBankAccount)Deprecated.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.voidunsetTheBankAccount()Deprecated.
-
-
-
Constructor Detail
-
ParentClass
protected ParentClass()
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.
-
ParentClass
protected ParentClass(ParentClass.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 ParentClass.Builder builder()
Method returns a new builder.- Returns:
ParentClass.BuilderNew builder that can be used to create new ParentClass objects.
-
builder
public static ParentClass.Builder builder(ParentClass 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:
ParentClass.BuilderNew builder that can be used to create new ParentClass objects. The method never returns null.
-
builder
public static ParentClass.Builder builder(java.lang.String pParentAttribute)
Method creates a new builder and initializes it with the passed attributes.
-
getParentAttribute
public java.lang.String getParentAttribute()
Method returns attributeparentAttribute.- Returns:
StringValue to whichparentAttributeis set.
-
setParentAttribute
public void setParentAttribute(java.lang.String pParentAttribute)
Method sets attributeparentAttribute.- Parameters:
pParentAttribute- Value to whichparentAttributeshould be set.
-
getIbans
public java.util.Set<IBAN> getIbans()
Method returns associationibans.- Returns:
SetValue to whichibansis set. The method never returns null and the returned collection is modifiable.
-
addToIbans
public void addToIbans(IBAN pIbans)
Method adds the passed object toibans.- Parameters:
pIbans- Object that should be added toibans. The parameter must not be null.
-
addToIbans
public void addToIbans(java.util.Collection<IBAN> pIbans)
Method adds all passed objects toibans.- Parameters:
pIbans- Collection with all objects that should be added toibans. The parameter must not be null.
-
removeFromIbans
public void removeFromIbans(IBAN pIbans)
Method removes the passed object fromibans.- Parameters:
pIbans- Object that should be removed fromibans. The parameter must not be null.
-
clearIbans
public void clearIbans()
Method removes all objects fromibans.
-
getTheBankAccount
@Deprecated public BankAccount getTheBankAccount()
Deprecated.Method returns associationtheBankAccount.
I would like to document references to other types.- Returns:
BankAccountValue to whichtheBankAccountis set.
-
setTheBankAccount
@Deprecated public void setTheBankAccount(BankAccount pTheBankAccount)
Deprecated.Method sets associationtheBankAccount.
I would like to document references to other types.- Parameters:
pTheBankAccount- Value to whichtheBankAccountshould be set.
-
unsetTheBankAccount
@Deprecated public final void unsetTheBankAccount()
Deprecated.Method unsetstheBankAccount.
-
getLegacyBankAccounts
@Deprecated public java.util.List<BankAccount> getLegacyBankAccounts()
Deprecated.Method returns associationlegacyBankAccounts.
Association is still there be SemVer compliant.- Returns:
ListValue to whichlegacyBankAccountsis set. The method never returns null and the returned collection is modifiable.
-
addToLegacyBankAccounts
@Deprecated public void addToLegacyBankAccounts(BankAccount pLegacyBankAccounts)
Deprecated.Method adds the passed object tolegacyBankAccounts.- Parameters:
pLegacyBankAccounts- Object that should be added tolegacyBankAccounts. The parameter must not be null.
-
addToLegacyBankAccounts
@Deprecated public void addToLegacyBankAccounts(java.util.Collection<BankAccount> pLegacyBankAccounts)
Deprecated.Method adds all passed objects tolegacyBankAccounts.- Parameters:
pLegacyBankAccounts- Collection with all objects that should be added tolegacyBankAccounts. The parameter must not be null.
-
removeFromLegacyBankAccounts
@Deprecated public void removeFromLegacyBankAccounts(BankAccount pLegacyBankAccounts)
Deprecated.Method removes the passed object fromlegacyBankAccounts.- Parameters:
pLegacyBankAccounts- Object that should be removed fromlegacyBankAccounts. The parameter must not be null.
-
clearLegacyBankAccounts
@Deprecated public void clearLegacyBankAccounts()
Deprecated.Method removes all objects fromlegacyBankAccounts.
-
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.
-
-