public class XmlGeoLocations extends Object implements Serializable
| Constructor and Description |
|---|
XmlGeoLocations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoLocation(int index,
XmlGeoLocation geoLocation)
|
void |
addGeoLocation(XmlGeoLocation geoLocation)
|
Iterator<? extends XmlGeoLocation> |
enumerateGeoLocation()
Return an
Iterator of all XmlGeoLocation. |
XmlGeoLocation[] |
getgeoLocation()
Returns the contents of the collection in an Array.
|
XmlGeoLocation |
getGeoLocation(int index)
Return the
XmlGeoLocation at the specified position in the
List. |
int |
getGeoLocationCount()
Return the number of the
XmlGeoLocation. |
void |
removeAllGeoLocation()
Remove all
XmlGeoLocation in the List. |
boolean |
removeGeoLocation(XmlGeoLocation geoLocation)
Remove a specified
XmlGeoLocation. |
XmlGeoLocation |
removeGeoLocationAt(int index)
Remove a
XmlGeoLocation at the specified position. |
void |
setGeoLocation(int index,
XmlGeoLocation geoLocation)
Set the
XmlGeoLocation at the specified position of the
List. |
void |
setGeoLocation(XmlGeoLocation[] geoLocationArray)
Set a all
XmlGeoLocation to the List. |
public void addGeoLocation(XmlGeoLocation geoLocation) throws IndexOutOfBoundsException
geoLocation - the XmlGeoLocation to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addGeoLocation(int index,
XmlGeoLocation geoLocation)
throws IndexOutOfBoundsException
index - the position to insert the XmlGeoLocation.geoLocation - the XmlGeoLocation to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlGeoLocation> enumerateGeoLocation()
Iterator of all XmlGeoLocation.XmlGeoLocation elements.public XmlGeoLocation getGeoLocation(int index) throws IndexOutOfBoundsException
XmlGeoLocation at the specified position in the
List.index - the position of the searched XmlGeoLocation.XmlGeoLocation at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlGeoLocation[] getgeoLocation()
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 getGeoLocationCount()
XmlGeoLocation.public void removeAllGeoLocation()
XmlGeoLocation in the List.public boolean removeGeoLocation(XmlGeoLocation geoLocation)
XmlGeoLocation.geoLocation - the XmlGeoLocation to remove.public XmlGeoLocation removeGeoLocationAt(int index)
XmlGeoLocation at the specified position.index - the position of the XmlGeoLocation to remove.public void setGeoLocation(int index,
XmlGeoLocation geoLocation)
throws IndexOutOfBoundsException
XmlGeoLocation at the specified position of the
List.index - the position to set the XmlGeoLocation.geoLocation - the XmlGeoLocation to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setGeoLocation(XmlGeoLocation[] geoLocationArray)
XmlGeoLocation to the List.geoLocationArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.