Class XmlContributors

  • All Implemented Interfaces:
    java.io.Serializable

    public class XmlContributors
    extends java.lang.Object
    implements java.io.Serializable
    XML mapping class for the 'contributors' element.
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlContributors

        public XmlContributors()
        Default constructor.
    • Method Detail

      • addContributor

        public void addContributor​(XmlContributor contributor)
                            throws java.lang.IndexOutOfBoundsException
        Add a XmlContributor to the List of XmlContributor.
        Parameters:
        contributor - the XmlContributor to add.
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.
      • addContributor

        public void addContributor​(int index,
                                   XmlContributor contributor)
                            throws java.lang.IndexOutOfBoundsException
        Add a XmlContributor to the List of XmlContributor at a specified position.
        Parameters:
        index - the position to insert the XmlContributor.
        contributor - the XmlContributor to add.
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • getContributor

        public XmlContributor getContributor​(int index)
                                      throws java.lang.IndexOutOfBoundsException
        Return the XmlContributor at the specified position in the List.
        Parameters:
        index - the position of the searched XmlContributor.
        Returns:
        the value of the XmlContributor at the given index
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • getContributor

        public XmlContributor[] getContributor()
        Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getContributorCount

        public int getContributorCount()
        Return the number of the XmlContributor.
        Returns:
        the size of this collection
      • removeAllContributor

        public void removeAllContributor()
        Remove all XmlContributor in the List.
      • removeContributor

        public boolean removeContributor​(XmlContributor contributor)
        Remove a specified XmlContributor.
        Parameters:
        contributor - the XmlContributor to remove.
        Returns:
        true if the object was removed from the collection.
      • removeContributorAt

        public XmlContributor removeContributorAt​(int index)
        Remove a XmlContributor at the specified position.
        Parameters:
        index - the position of the XmlContributor to remove.
        Returns:
        the element removed from the collection
      • setContributor

        public void setContributor​(int index,
                                   XmlContributor contributor)
                            throws java.lang.IndexOutOfBoundsException
        Set the XmlContributor at the specified position of the List.
        Parameters:
        index - the position to set the XmlContributor.
        contributor - the XmlContributor to set.
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection