|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.xml.base.NodeValueCharIterator
class NodeValueCharIterator
This is an implementation of CharIterator that iterates the
characters of the value(s) of a
single node or a
node-list.
| Field Summary | |
|---|---|
private int |
nodeIndex
The current index in nodeList. |
private NodeList |
nodeList
|
private String |
value
The current node-value. |
private int |
valueIndex
The current index in value. |
private int |
valueLength
The length of the current value. |
| Fields inherited from interface net.sf.mmm.util.lang.api.CharIterator |
|---|
END_OF_ITERATOR |
| Constructor Summary | |
|---|---|
NodeValueCharIterator(Node singleNode)
The constructor. |
|
NodeValueCharIterator(NodeList nodeList)
The constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
This method determines whether there is a next char
available or the end of this iterator has been reached. |
char |
next()
This method returns the next character to iterate or CharIterator.END_OF_ITERATOR if the end of this iterator has been reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final NodeList nodeList
NodeValueCharIterator(NodeList)private int nodeIndex
index in nodeList.
private String value
node-value.
private int valueLength
length of the current value.
private int valueIndex
index in value.
| Constructor Detail |
|---|
public NodeValueCharIterator(NodeList nodeList)
nodeList - is the NodeList containing the Nodes with
the values to iterate char by char.public NodeValueCharIterator(Node singleNode)
singleNode - is the single Node with the
value to iterate char by char.| Method Detail |
|---|
public boolean hasNext()
next char
available or the end of this iterator has been reached.
hasNext in interface CharIteratortrue if there is at least one next
char available, or false if the end of this iterator
has been reached and further calls of CharIterator.next() will return
CharIterator.END_OF_ITERATOR.CharIterator.next(),
Iterator.hasNext()public char next()
CharIterator.END_OF_ITERATOR if the end of this iterator has been reached. If
CharIterator.END_OF_ITERATOR is returned further calls will always return
CharIterator.END_OF_ITERATOR.
next in interface CharIteratorCharIterator.END_OF_ITERATOR if the end of this
iterator has been reached.Iterator.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||