Java Doc for DTMAxisIteratorBase.java in  » XML » xalan » org » apache » xml » dtm » ref » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xml.dtm.ref 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.dtm.ref.DTMAxisIteratorBase

All known Subclasses:   org.apache.xalan.xsltc.dom.UnionIterator,  org.apache.xalan.xsltc.dom.CurrentNodeListIterator,  org.apache.xalan.xsltc.dom.ClonedNodeListIterator,  org.apache.xalan.xsltc.dom.SingletonIterator,  org.apache.xalan.xsltc.dom.DupFilterIterator,  org.apache.xalan.xsltc.dom.FilterIterator,  org.apache.xalan.xsltc.dom.ForwardPositionIterator,  org.apache.xalan.xsltc.dom.KeyIndex,  org.apache.xalan.xsltc.dom.CachedNodeListIterator,  org.apache.xalan.xsltc.dom.StepIterator,  org.apache.xalan.xsltc.dom.AbsoluteIterator,  org.apache.xalan.xsltc.dom.SortingIterator,  org.apache.xalan.xsltc.dom.MatchingIterator,  org.apache.xalan.xsltc.dom.NthIterator,
DTMAxisIteratorBase
abstract public class DTMAxisIteratorBase implements DTMAxisIterator(Code)
This class serves as a default base for implementations of mutable DTMAxisIterators.


Field Summary
protected  boolean_includeSelf
     True if the start node should be considered part of the iteration.
protected  boolean_isRestartable
     True if this iteration can be restarted.
protected  int_last
     The position of the last node within the iteration, as defined by XPath. Note that this is _not_ the node's handle within the DTM.
protected  int_markedNode
     The position of the marked node within the iteration; a saved itaration state that we may want to come back to.
protected  int_position
     The position of the current node within the iteration, as defined by XPath.
protected  int_startNode
     The handle to the start, or root, of the iteration.


Method Summary
public  DTMAxisIteratorcloneIterator()
     Returns a deep copy of this iterator.
public  intgetAxis()
     Returns the axis being iterated, if it is known.
public  intgetLast()
     Returns the position of the last node within the iteration, as defined by XPath.
public  intgetNodeByPosition(int position)
     Return the node at the given position.
public  intgetPosition()
     The position of the current node within the set, as defined byXPath.
public  intgetStartNode()
     Get start to END should 'close' the iterator, i.e.
public  DTMAxisIteratorincludeSelf()
     Set the flag to include the start node in the iteration.
public  booleanisDocOrdered()
     Returns true if all the nodes in the iteration well be returned in document order.
public  booleanisReverse()
    
public  DTMAxisIteratorreset()
    
final protected  DTMAxisIteratorresetPosition()
     Reset the position to zero.
final protected  intreturnNode(int node)
     Do any final cleanup that is required before returning the node that was passed in, and then return it.
public  voidsetRestartable(boolean isRestartable)
    

Field Detail
_includeSelf
protected boolean _includeSelf(Code)
True if the start node should be considered part of the iteration. False will cause it to be skipped.



_isRestartable
protected boolean _isRestartable(Code)
True if this iteration can be restarted. False otherwise (eg, if we are iterating over a stream that can not be re-scanned, or if the iterator was produced by cloning another iterator.)



_last
protected int _last(Code)
The position of the last node within the iteration, as defined by XPath. Note that this is _not_ the node's handle within the DTM. Also, don't confuse it with the current (most recently returned) position.



_markedNode
protected int _markedNode(Code)
The position of the marked node within the iteration; a saved itaration state that we may want to come back to. Note that only one mark is maintained; there is no stack.



_position
protected int _position(Code)
The position of the current node within the iteration, as defined by XPath. Note that this is _not_ the node's handle within the DTM!



_startNode
protected int _startNode(Code)
The handle to the start, or root, of the iteration. Set this to END to construct an empty iterator.





Method Detail
cloneIterator
public DTMAxisIterator cloneIterator()(Code)
Returns a deep copy of this iterator. Cloned iterators may not be restartable. The iterator being cloned may or may not become non-restartable as a side effect of this operation. a deep copy of this iterator.



getAxis
public int getAxis()(Code)
Returns the axis being iterated, if it is known. Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.



getLast
public int getLast()(Code)
Returns the position of the last node within the iteration, as defined by XPath. In a forward iterator, I believe this equals the number of nodes which this iterator will yield. In a reverse iterator, I believe it should return 1 (since the "last" is the first produced.) This may be an expensive operation when called the first time, since it may have to iterate through a large part of the document to produce its answer. The number of nodes in this iterator (forward) or 1 (reverse).



getNodeByPosition
public int getNodeByPosition(int position)(Code)
Return the node at the given position.
Parameters:
  position - The position The node at the given position.



getPosition
public int getPosition()(Code)
The position of the current node within the set, as defined byXPath. Note that this is one-based, not zero-based.



getStartNode
public int getStartNode()(Code)
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END. The root node of the iteration.



includeSelf
public DTMAxisIterator includeSelf()(Code)
Set the flag to include the start node in the iteration. This default method returns just returns this DTMAxisIterator,after setting the flag.(Returning "this" permits C++-style chaining ofmethod calls into a single expression.)



isDocOrdered
public boolean isDocOrdered()(Code)
Returns true if all the nodes in the iteration well be returned in document order. true as a default.



isReverse
public boolean isReverse()(Code)
true if this iterator has a reversed axis, else false



reset
public DTMAxisIterator reset()(Code)
A DTMAxisIterator which has been reset to the start node,which may or may not be the same as this iterator.



resetPosition
final protected DTMAxisIterator resetPosition()(Code)
Reset the position to zero. NOTE that this does not change the iteration state, only the position number associated with that state. %REVIEW% Document when this would be used? This instance.



returnNode
final protected int returnNode(int node)(Code)
Do any final cleanup that is required before returning the node that was passed in, and then return it. The intended use is
return returnNode(node); %REVIEW% If we're calling it purely for side effects, should we really be bothering with a return value? Something like
accept(node); return node;
would probably optimize just about as well and avoid questions about whether what's returned could ever be different from what's passed in.
Parameters:
  node - Node handle which iteration is about to yield. The node handle passed in.



setRestartable
public void setRestartable(boolean isRestartable)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.