|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ximpleware.TextIter
public class TextIter
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. Since version 2.8, selectText(), selectComment(), and selectPI() were added Creation date: (12/5/03 5:53:41 PM)
| Field Summary | |
|---|---|
protected int |
depth
|
protected int |
index
|
protected VTDNav |
vn
|
| Constructor Summary | |
|---|---|
TextIter()
TextIter constructor comment. |
|
| Method Summary | |
|---|---|
int |
getNext()
Get the index vals for the text, PI name, or comment node in document order. |
void |
selectComment()
Ask textIter to return comment nodes |
void |
selectNode()
|
void |
selectPI0()
Ask TextIter to return processing instruction name no value |
void |
selectPI1(String s)
|
void |
selectText()
Ask textIter to return character data or CDATA nodes |
void |
touch(VTDNav 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 |
| Field Detail |
|---|
protected int depth
protected int index
protected VTDNav vn
| Constructor Detail |
|---|
public TextIter()
| Method Detail |
|---|
public void selectText()
public void selectComment()
public void selectPI0()
public void selectPI1(String s)
public void selectNode()
public int getNext()
public void touch(VTDNav v)
v - com.ximpleware.VTDNav
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||