public class XmlDates extends Object implements Serializable
| Constructor and Description |
|---|
XmlDates()
Default constructor
|
XmlDates(DateEvents elementValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDate(int index,
XmlDate date)
|
void |
addDate(XmlDate date)
|
Iterator<? extends XmlDate> |
enumerateDate()
|
XmlDate[] |
getDate()
Returns the contents of the collection in an Array.
|
XmlDate |
getDate(int index)
|
int |
getDateCount()
Return the number of the
XmlDate. |
void |
removeAllDate()
|
boolean |
removeDate(XmlDate date)
Remove a specified
XmlDate. |
XmlDate |
removeDateAt(int index)
Remove a
XmlDate at the specified position. |
void |
setDate(int index,
XmlDate date)
|
void |
setDate(XmlDate[] dateArray)
|
public XmlDates()
public XmlDates(DateEvents elementValue)
public void addDate(XmlDate date) throws IndexOutOfBoundsException
date - the XmlDate to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addDate(int index,
XmlDate date)
throws IndexOutOfBoundsException
index - the position to insert the XmlDate.date - the XmlDate to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlDate> enumerateDate()
XmlDate elements.public XmlDate getDate(int index) throws IndexOutOfBoundsException
index - the position of the searched XmlDate.XmlDate at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlDate[] getDate()
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 getDateCount()
XmlDate.public void removeAllDate()
public boolean removeDate(XmlDate date)
XmlDate.date - the XmlDate to remove.public XmlDate removeDateAt(int index)
XmlDate at the specified position.index - the position of the XmlDate to remove.public void setDate(int index,
XmlDate date)
throws IndexOutOfBoundsException
index - the position to set the XmlDate.date - the XmlDate to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setDate(XmlDate[] dateArray)
dateArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.