public class XmlTitles extends Object implements Serializable
| Constructor and Description |
|---|
XmlTitles()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTitle(int index,
XmlTitle title)
|
void |
addTitle(XmlTitle title)
|
Iterator<? extends XmlTitle> |
enumerateTitle()
|
XmlTitle[] |
getTitle()
Returns the contents of the collection in an Array.
|
XmlTitle |
getTitle(int index)
|
int |
getTitleCount()
Return the number of the
XmlTitle. |
void |
removeAllTitle()
|
boolean |
removeTitle(XmlTitle title)
Remove a specified
XmlTitle. |
XmlTitle |
removeTitleAt(int index)
Remove a
XmlTitle at the specified position. |
void |
setTitle(int index,
XmlTitle title)
|
void |
setTitle(XmlTitle[] titleArray)
|
public void addTitle(XmlTitle title) throws IndexOutOfBoundsException
title - the XmlTitle to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addTitle(int index,
XmlTitle title)
throws IndexOutOfBoundsException
index - the position to insert the XmlTitle.title - the XmlTitle to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlTitle> enumerateTitle()
XmlTitle elements.public XmlTitle getTitle(int index) throws IndexOutOfBoundsException
index - the position of the searched XmlTitle.XmlTitle at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlTitle[] getTitle()
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 getTitleCount()
XmlTitle.public void removeAllTitle()
public boolean removeTitle(XmlTitle title)
XmlTitle.title - the XmlTitle to remove.public XmlTitle removeTitleAt(int index)
XmlTitle at the specified position.index - the position of the XmlTitle to remove.public void setTitle(int index,
XmlTitle title)
throws IndexOutOfBoundsException
title - the position to set the XmlTitle.index - the position to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setTitle(XmlTitle[] titleArray)
titleArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.