Class EmailAddressCollection

    • Constructor Detail

      • EmailAddressCollection

        protected EmailAddressCollection​(String collectionItemXmlElementName)
        Initializes a new instance of the EmailAddressCollection class.
        Parameters:
        collectionItemXmlElementName - Name of the collection item XML element.
    • Method Detail

      • add

        public void add​(EmailAddress emailAddress)
        Adds an e-mail address to the collection.
        Parameters:
        emailAddress - The e-mail address to add.
      • addEmailRange

        public void addEmailRange​(Iterator<EmailAddress> emailAddresses)
        Adds multiple e-mail addresses to the collection.
        Parameters:
        emailAddresses - The e-mail addresses to add.
      • add

        public EmailAddress add​(String smtpAddress)
        Adds an e-mail address to the collection.
        Parameters:
        smtpAddress - The SMTP address used to initialize the e-mail address.
        Returns:
        An EmailAddress object initialized with the provided SMTP address.
      • addSmtpAddressRange

        public void addSmtpAddressRange​(Iterator<String> smtpAddresses)
        Adds multiple e-mail addresses to the collection.
        Parameters:
        smtpAddresses - The SMTP addresses used to initialize the e-mail addresses.
      • add

        public EmailAddress add​(String name,
                                String smtpAddress)
        Adds an e-mail address to the collection.
        Parameters:
        name - The name used to initialize the e-mail address.
        smtpAddress - The SMTP address used to initialize the e-mail address.
        Returns:
        An EmailAddress object initialized with the provided SMTP address.
      • clear

        public void clear()
        Clears the collection.
      • removeAt

        public void removeAt​(int index)
        Removes an e-mail address from the collection.
        Parameters:
        index - The index of the e-mail address to remove.
      • remove

        public boolean remove​(EmailAddress emailAddress)
                       throws Exception
        Removes an e-mail address from the collection.
        Parameters:
        emailAddress - The e-mail address to remove.
        Returns:
        True if the email address was successfully removed from the collection, false otherwise.
        Throws:
        Exception - the exception