com.ximpleware.extended
Class TextIter
java.lang.Object
com.ximpleware.extended.TextIter
public class TextIter
- extends Object
This class iterates through all text nodes of an element.
VTDNav has getText() which is inadequate for mixed content style of XML.
text nodes include character_data and CDATA.
Creation date: (12/5/03 5:53:41 PM)
|
Constructor Summary |
TextIter()
TextIter constructor comment. |
|
Method Summary |
int |
getNext()
Get the index vals for the text nodes in document order. |
void |
touch(VTDNavHuge v)
Obtain the current navigation position and element info from VTDNav. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
depth
protected int depth
index
protected int index
vn
protected VTDNavHuge vn
TextIter
public TextIter()
- TextIter constructor comment.
getNext
public int getNext()
- Get the index vals for the text nodes in document order.
Creation date: (12/5/03 6:11:50 PM)
- Returns:
- int (-1 if no more left)
touch
public void touch(VTDNavHuge v)
- Obtain the current navigation position and element info from VTDNav.
So one can instantiate it once and use it for many different elements
Creation date: (12/5/03 6:20:44 PM)
- Parameters:
v - com.ximpleware.VTDNav
Copyright © 2013. All Rights Reserved.