public class XmlContributors extends Object implements Serializable
| Constructor and Description |
|---|
XmlContributors()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContributor(int index,
XmlContributor contributor)
|
void |
addContributor(XmlContributor contributor)
|
Iterator<? extends XmlContributor> |
enumerateContributor()
Return an
Iterator of all XmlContributor. |
XmlContributor[] |
getContributor()
Returns the contents of the collection in an Array.
|
XmlContributor |
getContributor(int index)
Return the
XmlContributor at the specified position in the
List. |
int |
getContributorCount()
Return the number of the
XmlContributor. |
void |
removeAllContributor()
Remove all
XmlContributor in the List. |
boolean |
removeContributor(XmlContributor contributor)
Remove a specified
XmlContributor. |
XmlContributor |
removeContributorAt(int index)
Remove a
XmlContributor at the specified position. |
void |
setContributor(int index,
XmlContributor contributor)
Set the
XmlContributor at the specified position of the
List. |
void |
setContributor(XmlContributor[] contributorArray)
Set a all
XmlContributor to the List. |
public void addContributor(XmlContributor contributor) throws IndexOutOfBoundsException
contributor - the XmlContributor to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addContributor(int index,
XmlContributor contributor)
throws IndexOutOfBoundsException
index - the position to insert the XmlContributor.contributor - the XmlContributor to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlContributor> enumerateContributor()
Iterator of all XmlContributor.XmlContributor elements.public XmlContributor getContributor(int index) throws IndexOutOfBoundsException
XmlContributor at the specified position in the
List.index - the position of the searched XmlContributor.XmlContributor at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlContributor[] getContributor()
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.
public int getContributorCount()
XmlContributor.public void removeAllContributor()
XmlContributor in the List.public boolean removeContributor(XmlContributor contributor)
XmlContributor.contributor - the XmlContributor to remove.public XmlContributor removeContributorAt(int index)
XmlContributor at the specified position.index - the position of the XmlContributor to remove.public void setContributor(int index,
XmlContributor contributor)
throws IndexOutOfBoundsException
XmlContributor at the specified position of the
List.index - the position to set the XmlContributor.contributor - the XmlContributor to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setContributor(XmlContributor[] contributorArray)
XmlContributor to the List.contributorArray - the array of XmlContributor to set.Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.