public class XmlFormats extends Object implements Serializable
| Constructor and Description |
|---|
XmlFormats()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(int index,
String format)
|
void |
addFormat(String format)
|
Iterator<? extends String> |
enumerateFormat()
Return an
Iterator of all XmlFormats. |
String[] |
getFormat()
Returns the contents of the
List in an Array. |
String |
getFormat(int index)
Return the
XmlFormats at the specified position in the
List. |
int |
getFormatCount()
Return the number of the
XmlFormats. |
void |
removeAllFormat()
Remove all
XmlFormats in the List. |
boolean |
removeFormat(String format)
Remove a specified
XmlFormats. |
String |
removeFormatAt(int index)
Remove a
XmlFormats at the specified position. |
void |
setFormat(int index,
String format)
Set the
XmlFormats at the specified position of the List. |
void |
setFormat(String[] formatArray)
Set a all
XmlFormats to the List. |
public void addFormat(String format) throws IndexOutOfBoundsException
format - the XmlFormats to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addFormat(int index,
String format)
throws IndexOutOfBoundsException
index - the position to insert the XmlFormats.format - the XmlFormats to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends String> enumerateFormat()
Iterator of all XmlFormats.XmlFormats elements.public String getFormat(int index) throws IndexOutOfBoundsException
XmlFormats at the specified position in the
List.index - the position of the searched XmlFormats.XmlFormats at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic String[] getFormat()
List in an Array.
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.
XmlFormats.public int getFormatCount()
XmlFormats.public void removeAllFormat()
XmlFormats in the List.public boolean removeFormat(String format)
XmlFormats.format - the XmlFormats to remove.public String removeFormatAt(int index)
XmlFormats at the specified position.index - the position of the XmlFormats to remove.public void setFormat(int index,
String format)
throws IndexOutOfBoundsException
XmlFormats at the specified position of the List.index - the position to set the XmlFormats.format - the XmlFormats to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setFormat(String[] formatArray)
XmlFormats to the List.formatArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.