Java Doc for NodeIterator.java in  » Web-Server » Rimfaxe-Web-Server » org » w3c » dom » traversal » 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 » Web Server » Rimfaxe Web Server » org.w3c.dom.traversal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.traversal.NodeIterator

All known Subclasses:   org.apache.xerces.dom.NodeIteratorImpl,
NodeIterator
public interface NodeIterator (Code)
NodeIterators are used to step through a set of nodes, e.g. the set of nodes in a NodeList, the document subtree governed by a particular Node, the results of a query, or any other set of nodes. The set of nodes to be iterated is determined by the implementation of the NodeIterator. DOM Level 2 specifies a single NodeIterator implementation for document-order traversal of a document subtree. Instances of these NodeIterators are created by calling DocumentTraversal.createNodeIterator().

See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.
since:
   DOM Level 2





Method Summary
public  voiddetach()
     Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the NodeIterator in the INVALID state.
public  booleangetExpandEntityReferences()
     The value of this flag determines whether the children of entity reference nodes are visible to the NodeIterator.
public  NodeFiltergetFilter()
     The NodeFilter used to screen nodes.
public  NodegetRoot()
     The root node of the NodeIterator, as specified when it was created.
public  intgetWhatToShow()
     This attribute determines which node types are presented via the NodeIterator.
public  NodenextNode()
     Returns the next node in the set and advances the position of the NodeIterator in the set.
public  NodepreviousNode()
     Returns the previous node in the set and moves the position of the NodeIterator backwards in the set. The previous Node in the set being iterated over, or null if there are no more members in that set.



Method Detail
detach
public void detach()(Code)
Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the NodeIterator in the INVALID state. After detach has been invoked, calls to nextNode or previousNode will raise the exception INVALID_STATE_ERR.



getExpandEntityReferences
public boolean getExpandEntityReferences()(Code)
The value of this flag determines whether the children of entity reference nodes are visible to the NodeIterator. If false, these children and their descendants will be rejected. Note that this rejection takes precedence over whatToShow and the filter. Also note that this is currently the only situation where NodeIterators may reject a complete subtree rather than skipping individual nodes.

To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the whatToShow flags to hide the entity reference node and set expandEntityReferences to true when creating the NodeIterator. To produce a view of the document that has entity reference nodes but no entity expansion, use the whatToShow flags to show the entity reference node and set expandEntityReferences to false.



getFilter
public NodeFilter getFilter()(Code)
The NodeFilter used to screen nodes.



getRoot
public Node getRoot()(Code)
The root node of the NodeIterator, as specified when it was created.



getWhatToShow
public int getWhatToShow()(Code)
This attribute determines which node types are presented via the NodeIterator. The available set of constants is defined in the NodeFilter interface. Nodes not accepted by whatToShow will be skipped, but their children may still be considered. Note that this skip takes precedence over the filter, if any.



nextNode
public Node nextNode() throws DOMException(Code)
Returns the next node in the set and advances the position of the NodeIterator in the set. After a NodeIterator is created, the first call to nextNode() returns the first node in the set. The next Node in the set being iterated over, or null if there are no more members in that set.
exception:
  DOMException - INVALID_STATE_ERR: Raised if this method is called after the detach method was invoked.



previousNode
public Node previousNode() throws DOMException(Code)
Returns the previous node in the set and moves the position of the NodeIterator backwards in the set. The previous Node in the set being iterated over, or null if there are no more members in that set.
exception:
  DOMException - INVALID_STATE_ERR: Raised if this method is called after the detach method was invoked.



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