Class PartyType

  • All Implemented Interfaces:
    com.helger.commons.lang.IExplicitlyCloneable, Serializable, Cloneable
    Direct Known Subclasses:
    OrganizationType, PersonType

    @CodingStyleguideUnaware
    public abstract class PartyType
    extends RegistryObjectType
    Represents a Party such as Person or Organization.

    Java class for PartyType complex type.

    The following schema fragment specifies the expected content contained within this class.

    
     <complexType name="PartyType">
       <complexContent>
         <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}RegistryObjectType">
           <sequence>
             <element name="PostalAddress" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}PostalAddressType" maxOccurs="unbounded" minOccurs="0"/>
             <element name="TelephoneNumber" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}TelephoneNumberType" maxOccurs="unbounded" minOccurs="0"/>
             <element name="EmailAddress" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}EmailAddressType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     

    This class was annotated by ph-jaxb-plugin -Xph-annotate

    This class contains methods created by ph-jaxb-plugin -Xph-equalshashcode

    This class contains methods created by ph-jaxb-plugin -Xph-tostring

    This class contains methods created by ph-jaxb-plugin -Xph-list-extension

    This class contains methods created by ph-jaxb-plugin -Xph-cloneable2

    This class contains methods created by ph-jaxb-plugin -Xph-value-extender

    See Also:
    Serialized Form
    • Constructor Detail

      • PartyType

        public PartyType()
        Default constructor
        Note: automatically created by ph-jaxb-plugin -Xph-value-extender
    • Method Detail

      • getPostalAddress

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<PostalAddressType> getPostalAddress()
        Gets the value of the postalAddress property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the postalAddress property.

        For example, to add a new item, do as follows:

            getPostalAddress().add(newItem);
         

        Objects of the following type(s) are allowed in the list PostalAddressType

        Returns:
        The value of the postalAddress property.
      • getTelephoneNumber

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<TelephoneNumberType> getTelephoneNumber()
        Gets the value of the telephoneNumber property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the telephoneNumber property.

        For example, to add a new item, do as follows:

            getTelephoneNumber().add(newItem);
         

        Objects of the following type(s) are allowed in the list TelephoneNumberType

        Returns:
        The value of the telephoneNumber property.
      • getEmailAddress

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<EmailAddressType> getEmailAddress()
        Gets the value of the emailAddress property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the emailAddress property.

        For example, to add a new item, do as follows:

            getEmailAddress().add(newItem);
         

        Objects of the following type(s) are allowed in the list EmailAddressType

        Returns:
        The value of the emailAddress property.
      • hashCode

        public int hashCode()
        Created by ph-jaxb-plugin -Xph-equalshashcode
        Overrides:
        hashCode in class RegistryObjectType
      • setPostalAddress

        public void setPostalAddress​(@Nullable
                                     List<PostalAddressType> aList)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • setTelephoneNumber

        public void setTelephoneNumber​(@Nullable
                                       List<TelephoneNumberType> aList)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • setEmailAddress

        public void setEmailAddress​(@Nullable
                                    List<EmailAddressType> aList)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • hasPostalAddressEntries

        public boolean hasPostalAddressEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoPostalAddressEntries

        public boolean hasNoPostalAddressEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getPostalAddressCount

        @Nonnegative
        public int getPostalAddressCount()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • addPostalAddress

        public void addPostalAddress​(@Nonnull
                                     PostalAddressType elem)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • hasTelephoneNumberEntries

        public boolean hasTelephoneNumberEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoTelephoneNumberEntries

        public boolean hasNoTelephoneNumberEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getTelephoneNumberCount

        @Nonnegative
        public int getTelephoneNumberCount()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • addTelephoneNumber

        public void addTelephoneNumber​(@Nonnull
                                       TelephoneNumberType elem)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • hasEmailAddressEntries

        public boolean hasEmailAddressEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoEmailAddressEntries

        public boolean hasNoEmailAddressEntries()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getEmailAddressCount

        @Nonnegative
        public int getEmailAddressCount()
        Created by ph-jaxb-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • addEmailAddress

        public void addEmailAddress​(@Nonnull
                                    EmailAddressType elem)
        Created by ph-jaxb-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • cloneTo

        public void cloneTo​(@Nonnull
                            PartyType ret)
        This method clones all values from this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb-plugin -Xph-cloneable2
        Parameters:
        ret - The target object to clone to. May not be null.
      • clone

        @Nonnull
        @ReturnsMutableCopy
        public abstract PartyType clone()
        Created by ph-jaxb-plugin -Xph-cloneable2
        Specified by:
        clone in interface com.helger.commons.lang.IExplicitlyCloneable
        Overrides:
        clone in class RegistryObjectType
        Returns:
        The cloned object. Never null.