public class XmlDescriptions extends Object implements Serializable
| Constructor and Description |
|---|
XmlDescriptions()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDescription(int index,
XmlDescription description)
|
void |
addDescription(XmlDescription description)
|
Iterator<? extends XmlDescription> |
enumerateDescription()
Return an
Iterator of all XmlDescription. |
XmlDescription[] |
getDescription()
Returns the contents of the collection in an Array.
|
XmlDescription |
getDescription(int index)
Return the
XmlDescription at the specified position in the
List. |
int |
getDescriptionCount()
Return the number of the
XmlDescription. |
void |
removeAllDescription()
Remove all
XmlDescription in the List. |
boolean |
removeDescription(XmlDescription description)
Remove a specified
XmlDescription. |
XmlDescription |
removeDescriptionAt(int index)
Remove a
XmlDescription at the specified position. |
void |
setDescription(int index,
XmlDescription description)
Set the
XmlDescription at the specified position of the
List. |
void |
setDescription(XmlDescription[] descriptionArray)
Set a all
XmlDescription to the List. |
public void addDescription(XmlDescription description) throws IndexOutOfBoundsException
description - the XmlDescription to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addDescription(int index,
XmlDescription description)
throws IndexOutOfBoundsException
index - the position to insert the XmlDescription.description - the XmlDescription to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlDescription> enumerateDescription()
Iterator of all XmlDescription.XmlDescription elements.public XmlDescription getDescription(int index) throws IndexOutOfBoundsException
XmlDescription at the specified position in the
List.index - the position of the searched XmlDescription.XmlDescription at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlDescription[] getDescription()
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 getDescriptionCount()
XmlDescription.public void removeAllDescription()
XmlDescription in the List.public boolean removeDescription(XmlDescription description)
XmlDescription.description - the XmlDescription to remove.public XmlDescription removeDescriptionAt(int index)
XmlDescription at the specified position.index - the position of the XmlDescription to remove.public void setDescription(int index,
XmlDescription description)
throws IndexOutOfBoundsException
XmlDescription at the specified position of the
List.index - the position to set the XmlDescription.description - the XmlDescription to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setDescription(XmlDescription[] descriptionArray)
XmlDescription to the List.descriptionArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.