Class XmlCreators

  • All Implemented Interfaces:
    java.io.Serializable

    public class XmlCreators
    extends java.lang.Object
    implements java.io.Serializable
    XML Mapping class for the 'creators' element.
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlCreators

        public XmlCreators()
        Default constructor
    • Method Detail

      • addCreator

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

        public void addCreator​(int index,
                               XmlCreator creator)
                        throws java.lang.IndexOutOfBoundsException
        Add a XmlCreator to the List of XmlCreators at a specified position.
        Parameters:
        index - the position to insert the XmlCreator.
        creator - the XmlCreator to add.
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • enumerateCreator

        public java.util.Iterator<? extends XmlCreator> enumerateCreator()
        Return an Iterator of all XmlCreator.
        Returns:
        an Iterator over all XmlCreator elements.
      • getCreator

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

        public XmlCreator[] getCreator()
        Returns the contents of the List 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:
        an Array of XmlCreator.
      • getCreatorCount

        public int getCreatorCount()
        Return the number of the XmlCreator.
        Returns:
        the size of this collection
      • removeAllCreator

        public void removeAllCreator()
        Remove all XmlCreator in the List.
      • removeCreator

        public boolean removeCreator​(XmlCreator creator)
        Remove a specified XmlCreator.
        Parameters:
        creator - the XmlCreator to remove.
        Returns:
        true if the object was removed from the collection.
      • removeCreatorAt

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

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

        public void setCreator​(XmlCreator[] creatorArray)
        Set a all XmlCreator to the List.
        Parameters:
        creatorArray - the array of creators to set