|
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 Iterator 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(MessageElement obj)
Not provided because the namespace cannot be specified. |
String |
getNamespace()
return the namespace of the current element. |
MessageElement |
getSignature()
Return the signature element of the current element. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
MessageElement |
next()
|
int |
nextIndex()
|
MessageElement |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(MessageElement 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 Iterator<MessageElement>
hasNext
in interface ListIterator<MessageElement>
public MessageElement next()
next
in interface Iterator<MessageElement>
next
in interface ListIterator<MessageElement>
public int nextIndex()
nextIndex
in interface ListIterator<MessageElement>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<MessageElement>
public MessageElement previous()
previous
in interface ListIterator<MessageElement>
public int previousIndex()
previousIndex
in interface ListIterator<MessageElement>
public void add(MessageElement obj)
add
in interface ListIterator<MessageElement>
public void remove()
remove
in interface Iterator<MessageElement>
remove
in interface ListIterator<MessageElement>
public void set(MessageElement obj)
set
in interface ListIterator<MessageElement>
public String getNamespace()
public MessageElement getSignature()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |