public class XmlFormats
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
XmlFormats()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(int index,
java.lang.String format)
|
void |
addFormat(java.lang.String format)
|
java.util.Iterator<? extends java.lang.String> |
enumerateFormat()
Return an
Iterator of all XmlFormats. |
java.lang.String[] |
getFormat()
Returns the contents of the
List in an Array. |
java.lang.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(java.lang.String format)
Remove a specified
XmlFormats. |
java.lang.String |
removeFormatAt(int index)
Remove a
XmlFormats at the specified position. |
void |
setFormat(int index,
java.lang.String format)
Set the
XmlFormats at the specified position of the List. |
void |
setFormat(java.lang.String[] formatArray)
Set a all
XmlFormats to the List. |
public void addFormat(java.lang.String format)
throws java.lang.IndexOutOfBoundsException
format - the XmlFormats to add.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addFormat(int index,
java.lang.String format)
throws java.lang.IndexOutOfBoundsException
index - the position to insert the XmlFormats.format - the XmlFormats to add.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic java.util.Iterator<? extends java.lang.String> enumerateFormat()
Iterator of all XmlFormats.XmlFormats elements.public java.lang.String getFormat(int index)
throws java.lang.IndexOutOfBoundsException
XmlFormats at the specified position in the
List.index - the position of the searched XmlFormats.XmlFormats at the given indexjava.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic java.lang.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(java.lang.String format)
XmlFormats.format - the XmlFormats to remove.public java.lang.String removeFormatAt(int index)
XmlFormats at the specified position.index - the position of the XmlFormats to remove.public void setFormat(int index,
java.lang.String format)
throws java.lang.IndexOutOfBoundsException
XmlFormats at the specified position of the List.index - the position to set the XmlFormats.format - the XmlFormats to set.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setFormat(java.lang.String[] formatArray)
XmlFormats to the List.formatArray - the array of formats to set