public class XmlTitles
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
XmlTitles()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTitle(int index,
XmlTitle title)
|
void |
addTitle(XmlTitle title)
|
java.util.Iterator<? extends XmlTitle> |
enumerateTitle()
Return an
Iterator of all XmlTitle. |
XmlTitle[] |
getTitle()
Returns the contents of the collection in an Array.
|
XmlTitle |
getTitle(int index)
Return the
XmlTitle at the specified position in the List
. |
int |
getTitleCount()
Return the number of the
XmlTitle. |
void |
removeAllTitle()
Remove all
XmlTitle in the List. |
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)
Set the
XmlTitle at the specified position of the List. |
void |
setTitle(XmlTitle[] titleArray)
Set a all
XmlTitle to the List. |
public void addTitle(XmlTitle title) throws java.lang.IndexOutOfBoundsException
title - the XmlTitle to add.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addTitle(int index,
XmlTitle title)
throws java.lang.IndexOutOfBoundsException
public java.util.Iterator<? extends XmlTitle> enumerateTitle()
Iterator of all XmlTitle.XmlTitle elements.public XmlTitle getTitle(int index) throws java.lang.IndexOutOfBoundsException
XmlTitle at the specified position in the List
.public 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()
XmlTitle in the List.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 java.lang.IndexOutOfBoundsException
XmlTitle at the specified position of the List.title - the position to set the XmlTitle.index - the position to set.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection