Class ParentClass

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable
    Direct Known Subclasses:
    ChildA, ChildB

    @Valid
    public class ParentClass
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject
    See Also:
    Serialized Form
    • 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​(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.Builder New 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 attribute parentAttribute.
        Returns:
        String Value to which parentAttribute is set.
      • setParentAttribute

        public void setParentAttribute​(java.lang.String pParentAttribute)
        Method sets attribute parentAttribute.
        Parameters:
        pParentAttribute - Value to which parentAttribute should be set.
      • getIbans

        public java.util.Set<IBAN> getIbans()
        Method returns association ibans.
        Returns:
        Set Value to which ibans is set. The method never returns null and the returned collection is modifiable.
      • addToIbans

        public void addToIbans​(IBAN pIbans)
        Method adds the passed object to ibans.
        Parameters:
        pIbans - Object that should be added to ibans. The parameter must not be null.
      • addToIbans

        public void addToIbans​(java.util.Collection<IBAN> pIbans)
        Method adds all passed objects to ibans.
        Parameters:
        pIbans - Collection with all objects that should be added to ibans. The parameter must not be null.
      • removeFromIbans

        public void removeFromIbans​(IBAN pIbans)
        Method removes the passed object from ibans.
        Parameters:
        pIbans - Object that should be removed from ibans. The parameter must not be null.
      • clearIbans

        public void clearIbans()
        Method removes all objects from ibans.
      • setTheBankAccount

        @Deprecated
        public void setTheBankAccount​(BankAccount pTheBankAccount)
        Deprecated.
        Method sets association theBankAccount.
        I would like to document references to other types.
        Parameters:
        pTheBankAccount - Value to which theBankAccount should be set.
      • unsetTheBankAccount

        @Deprecated
        public final void unsetTheBankAccount()
        Deprecated.
        Method unsets theBankAccount.
      • getLegacyBankAccounts

        @Deprecated
        public java.util.List<BankAccount> getLegacyBankAccounts()
        Deprecated.
        Method returns association legacyBankAccounts.
        Association is still there be SemVer compliant.
        Returns:
        List Value to which legacyBankAccounts is 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 to legacyBankAccounts.
        Parameters:
        pLegacyBankAccounts - Object that should be added to legacyBankAccounts. The parameter must not be null.
      • addToLegacyBankAccounts

        @Deprecated
        public void addToLegacyBankAccounts​(java.util.Collection<BankAccount> pLegacyBankAccounts)
        Deprecated.
        Method adds all passed objects to legacyBankAccounts.
        Parameters:
        pLegacyBankAccounts - Collection with all objects that should be added to legacyBankAccounts. The parameter must not be null.
      • removeFromLegacyBankAccounts

        @Deprecated
        public void removeFromLegacyBankAccounts​(BankAccount pLegacyBankAccounts)
        Deprecated.
        Method removes the passed object from legacyBankAccounts.
        Parameters:
        pLegacyBankAccounts - Object that should be removed from legacyBankAccounts. The parameter must not be null.
      • clearLegacyBankAccounts

        @Deprecated
        public void clearLegacyBankAccounts()
        Deprecated.
        Method removes all objects from legacyBankAccounts.
      • 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:
        StringBuilder StringBuilder 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:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.