|
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
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 ListIterator
public Object next()
next
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void add(Object obj)
add
in interface ListIterator
public void remove()
remove
in interface ListIterator
public void set(Object obj)
set
in interface ListIterator
public String getNamespace()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |