Source Code Cross Referenced 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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2000 World Wide Web Consortium,
003:         * (Massachusetts Institute of Technology, Institut National de
004:         * Recherche en Informatique et en Automatique, Keio University). All
005:         * Rights Reserved. This program is distributed under the W3C's Software
006:         * Intellectual Property License. This program is distributed in the
007:         * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008:         * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009:         * PURPOSE.
010:         * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011:         */
012:
013:        package org.w3c.dom.traversal;
014:
015:        import org.w3c.dom.Node;
016:        import org.w3c.dom.DOMException;
017:
018:        /**
019:         * <code>NodeIterators</code> are used to step through a set of nodes, e.g. 
020:         * the set of nodes in a <code>NodeList</code>, the document subtree 
021:         * governed by a particular <code>Node</code>, the results of a query, or 
022:         * any other set of nodes. The set of nodes to be iterated is determined by 
023:         * the implementation of the <code>NodeIterator</code>. DOM Level 2 
024:         * specifies a single <code>NodeIterator</code> implementation for 
025:         * document-order traversal of a document subtree. Instances of these 
026:         * <code>NodeIterators</code> are created by calling 
027:         * <code>DocumentTraversal</code><code>.createNodeIterator()</code>.
028:         * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
029:         * @since DOM Level 2
030:         */
031:        public interface NodeIterator {
032:            /**
033:             * The root node of the <code>NodeIterator</code>, as specified when it 
034:             * was created.
035:             */
036:            public Node getRoot();
037:
038:            /**
039:             * This attribute determines which node types are presented via the 
040:             * <code>NodeIterator</code>. The available set of constants is defined 
041:             * in the <code>NodeFilter</code> interface.  Nodes not accepted by 
042:             * <code>whatToShow</code> will be skipped, but their children may still 
043:             * be considered. Note that this skip takes precedence over the filter, 
044:             * if any. 
045:             */
046:            public int getWhatToShow();
047:
048:            /**
049:             * The <code>NodeFilter</code> used to screen nodes.
050:             */
051:            public NodeFilter getFilter();
052:
053:            /**
054:             *  The value of this flag determines whether the children of entity 
055:             * reference nodes are visible to the <code>NodeIterator</code>. If 
056:             * false, these children  and their descendants will be rejected. Note 
057:             * that this rejection takes precedence over <code>whatToShow</code> and 
058:             * the filter. Also note that this is currently the only situation where 
059:             * <code>NodeIterators</code> may reject a complete subtree rather than 
060:             * skipping individual nodes. 
061:             * <br>
062:             * <br> To produce a view of the document that has entity references 
063:             * expanded and does not expose the entity reference node itself, use 
064:             * the <code>whatToShow</code> flags to hide the entity reference node 
065:             * and set <code>expandEntityReferences</code> to true when creating the 
066:             * <code>NodeIterator</code>. To produce a view of the document that has 
067:             * entity reference nodes but no entity expansion, use the 
068:             * <code>whatToShow</code> flags to show the entity reference node and 
069:             * set <code>expandEntityReferences</code> to false.
070:             */
071:            public boolean getExpandEntityReferences();
072:
073:            /**
074:             * Returns the next node in the set and advances the position of the 
075:             * <code>NodeIterator</code> in the set. After a 
076:             * <code>NodeIterator</code> is created, the first call to 
077:             * <code>nextNode()</code> returns the first node in the set.
078:             * @return The next <code>Node</code> in the set being iterated over, or 
079:             *   <code>null</code> if there are no more members in that set.
080:             * @exception DOMException
081:             *   INVALID_STATE_ERR: Raised if this method is called after the 
082:             *   <code>detach</code> method was invoked.
083:             */
084:            public Node nextNode() throws DOMException;
085:
086:            /**
087:             * Returns the previous node in the set and moves the position of the 
088:             * <code>NodeIterator</code> backwards in the set.
089:             * @return The previous <code>Node</code> in the set being iterated over, 
090:             *   or <code>null</code> if there are no more members in that set. 
091:             * @exception DOMException
092:             *   INVALID_STATE_ERR: Raised if this method is called after the 
093:             *   <code>detach</code> method was invoked.
094:             */
095:            public Node previousNode() throws DOMException;
096:
097:            /**
098:             * Detaches the <code>NodeIterator</code> from the set which it iterated 
099:             * over, releasing any computational resources and placing the 
100:             * <code>NodeIterator</code> in the INVALID state. After 
101:             * <code>detach</code> has been invoked, calls to <code>nextNode</code> 
102:             * or <code>previousNode</code> will raise the exception 
103:             * INVALID_STATE_ERR.
104:             */
105:            public void detach();
106:
107:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.