|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xalan.xsltc.dom.DupFilterIterator
public final class DupFilterIterator
Removes duplicates and sorts a source iterator. The nodes from the source are collected in an array upon calling setStartNode(). This array is later sorted and duplicates are ignored in next().
| Field Summary |
|---|
| Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator |
|---|
END |
| Constructor Summary | |
|---|---|
DupFilterIterator(DTMAxisIterator source)
|
|
| Method Summary | |
|---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator. |
void |
gotoMark()
Restores the current node remembered by setMark(). |
int |
next()
Get the next node in the iteration. |
DTMAxisIterator |
reset()
Resets the iterator to the last start node. |
void |
setMark()
Remembers the current node for the next call to gotoMark(). |
void |
setRestartable(boolean isRestartable)
Set if restartable. |
DTMAxisIterator |
setStartNode(int node)
Set the start node for this iterator |
| Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
|---|
getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DupFilterIterator(DTMAxisIterator source)
| Method Detail |
|---|
public DTMAxisIterator setStartNode(int node)
node - The start node
public int next()
DTMAxisIterator
public DTMAxisIterator cloneIterator()
DTMAxisIteratorBase
cloneIterator in interface DTMAxisIteratorcloneIterator in class DTMAxisIteratorBasepublic void setRestartable(boolean isRestartable)
DTMAxisIterator
setRestartable in interface DTMAxisIteratorsetRestartable in class DTMAxisIteratorBasepublic void setMark()
DTMAxisIterator
public void gotoMark()
DTMAxisIterator
public DTMAxisIterator reset()
DTMAxisIterator
reset in interface DTMAxisIteratorreset in class DTMAxisIteratorBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||