public class XmlSubjects extends Object implements Serializable
| Constructor and Description |
|---|
XmlSubjects()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubject(int index,
XmlSubject subject)
|
void |
addSubject(XmlSubject subject)
|
Iterator<? extends XmlSubject> |
enumerateSubject()
Return an
Iterator of all XmlSubject. |
XmlSubject[] |
getSubject()
Returns the contents of the collection in an Array.
|
XmlSubject |
getSubject(int index)
Return the
XmlSubject at the specified position in the
List. |
int |
getSubjectCount()
Return the number of the
XmlSubject. |
void |
removeAllSubject()
Remove all
XmlSubject in the List. |
boolean |
removeSubject(XmlSubject subject)
Remove a specified
XmlSubject. |
XmlSubject |
removeSubjectAt(int index)
Remove a
XmlSubject at the specified position. |
void |
setSubject(int index,
XmlSubject subject)
Set the
XmlSubject at the specified position of the List. |
void |
setSubject(XmlSubject[] subjectArray)
Set a all
XmlSubject to the List. |
public void addSubject(XmlSubject subject) throws IndexOutOfBoundsException
subject - the XmlSubject to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collection.public void addSubject(int index,
XmlSubject subject)
throws IndexOutOfBoundsException
subject - the position to insert the XmlSubject.index - the position of the XmlSubject to add.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic Iterator<? extends XmlSubject> enumerateSubject()
Iterator of all XmlSubject.XmlSubject elements.public XmlSubject getSubject(int index) throws IndexOutOfBoundsException
XmlSubject at the specified position in the
List.index - the position of the searched XmlSubject.XmlSubject at the given indexIndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic XmlSubject[] getSubject()
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 getSubjectCount()
XmlSubject.public void removeAllSubject()
XmlSubject in the List.public boolean removeSubject(XmlSubject subject)
XmlSubject.subject - the XmlSubject to remove.public XmlSubject removeSubjectAt(int index)
XmlSubject at the specified position.index - the position of the XmlSubject to remove.public void setSubject(int index,
XmlSubject subject)
throws IndexOutOfBoundsException
XmlSubject at the specified position of the List.index - the position to set the XmlSubject.subject - the XmlSubject to set.IndexOutOfBoundsException - if the index given is outside the bounds of the collectionpublic void setSubject(XmlSubject[] subjectArray)
XmlSubject to the List.subjectArray - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.