public class XmlRightsList extends Object implements Serializable
| Constructor and Description |
|---|
XmlRightsList()
Default constructor
|
XmlRightsList(UntypedData elementValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRights(int index,
XmlRights rigths)
|
void |
addRights(XmlRights rights)
|
Iterator<? extends XmlRights> |
enumerateRights()
|
XmlRights[] |
getRights()
Returns the contents of the collection in an Array.
|
XmlRights |
getRights(int index)
|
int |
getRightsCount()
Return the number of the
XmlRights. |
void |
removeAllRights()
|
XmlRights |
removeRightAt(int index)
Remove a
XmlRights at the specified position. |
boolean |
removeRights(XmlRights date)
Remove a specified
XmlRights. |
void |
setRights(int index,
XmlRights rights)
|
void |
setRights(XmlRights[] rightsArray)
|
public XmlRightsList()
public XmlRightsList(UntypedData elementValue)
public void addRights(XmlRights rights) throws IndexOutOfBoundsException
rights - the XmlRights to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addRights(int index,
XmlRights rigths)
throws IndexOutOfBoundsException
index - the position to insert the XmlRights.rigths - the XmlRights to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlRights> enumerateRights()
XmlRights elements.public XmlRights getRights(int index) throws IndexOutOfBoundsException
index - the position of the searched XmlRights.XmlRights at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlRights[] getRights()
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 getRightsCount()
XmlRights.public void removeAllRights()
public boolean removeRights(XmlRights date)
XmlRights.date - the XmlRights to remove.public XmlRights removeRightAt(int index)
XmlRights at the specified position.index - the position of the XmlRights to remove.public void setRights(int index,
XmlRights rights)
throws IndexOutOfBoundsException
index - the position to set the XmlRights.rights - the XmlRights to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setRights(XmlRights[] rightsArray)
rightsArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.