Class XmlAlternateIdentifiers

  • All Implemented Interfaces:
    java.io.Serializable

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

      • XmlAlternateIdentifiers

        public XmlAlternateIdentifiers()
        Default constructor.
    • Method Detail

      • getAlternateIdentifier

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

        public XmlAlternateIdentifier[] getAlternateIdentifier()
        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
      • getAlternateIdentifierCount

        public int getAlternateIdentifierCount()
        Return the number of the XmlAlternateIdentifier.
        Returns:
        the size of this collection
      • removeAllAlternateIdentifier

        public void removeAllAlternateIdentifier()
        Remove all XmlAlternateIdentifier in the List.
      • setAlternateIdentifier

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

        public void setAlternateIdentifier​(XmlAlternateIdentifier[] alternateIdentifierArray)
        Set a all XmlAlternateIdentifier to the List.
        Parameters:
        alternateIdentifierArray - the array of alternate identifiers to set