public class XmlRightsList
extends java.lang.Object
implements java.io.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)
|
java.util.Iterator<? extends XmlRights> |
enumerateRights()
Return an
Iterator of all XmlRights. |
XmlRights[] |
getRights()
Returns the contents of the collection in an Array.
|
XmlRights |
getRights(int index)
Return the
XmlRights at the specified position in the
List. |
int |
getRightsCount()
Return the number of the
XmlRights. |
void |
removeAllRights()
Remove all
XmlRights in the List. |
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)
Set the
XmlRights at the specified position of the List. |
void |
setRights(XmlRights[] rightsArray)
Set a all
XmlRights to the List. |
public XmlRightsList()
public XmlRightsList(UntypedData elementValue)
public void addRights(XmlRights rights) throws java.lang.IndexOutOfBoundsException
rights - the XmlRights to add.java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addRights(int index,
XmlRights rigths)
throws java.lang.IndexOutOfBoundsException
public java.util.Iterator<? extends XmlRights> enumerateRights()
Iterator of all XmlRights.XmlRights elements.public XmlRights getRights(int index) throws java.lang.IndexOutOfBoundsException
XmlRights at the specified position in the
List.public 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()
XmlRights in the List.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 java.lang.IndexOutOfBoundsException
XmlRights at the specified position of the List.