|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.endpoint.Message.ElementIterator
public class Message.ElementIterator
A ListIterator for MessageElements which also provides the ability to determine the namespace of the current message element. Message Elements are iterated in the order in which they were added to the Message.
This ListIterator returned is not synchronized with the message. If you modify the state of the Message, the iterator will throw ConcurrentModificationException whennext() or
previous() is called.
| Method Summary | |
|---|---|
void |
add(Object obj)
Not provided because the namespace cannot be specified. |
String |
getNamespace()
return the namespace of the current element. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
Object |
next()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(Object obj)
Replacement MessageElement will be in the same name space as the replaced element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void add(Object obj)
add in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void set(Object obj)
set in interface ListIteratorpublic String getNamespace()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||