Source Code Cross Referenced for UnconstructedDocument.java in  » XML » XPath-Saxon » net » sf » saxon » pull » 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 » XPath Saxon » net.sf.saxon.pull 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sf.saxon.pull;
002:
003:        import net.sf.saxon.expr.XPathContext;
004:        import net.sf.saxon.instruct.DocumentInstr;
005:        import net.sf.saxon.om.DocumentInfo;
006:        import net.sf.saxon.om.NodeInfo;
007:        import net.sf.saxon.type.Type;
008:
009:        /**
010:         * A document node whose construction is deferred.
011:         * </p>
012:         * (TODO) NOTE: this class is an exception to the general rule that for document nodes, node identity implies object identity
013:         */
014:
015:        public class UnconstructedDocument extends UnconstructedParent
016:                implements  DocumentInfo {
017:
018:            public UnconstructedDocument(DocumentInstr instruction,
019:                    XPathContext context) {
020:                super (instruction, context);
021:            }
022:
023:            /**
024:             * Get name code. The name code is a coded form of the node name: two nodes
025:             * with the same name code have the same namespace URI, the same local name,
026:             * and the same prefix. By masking the name code with &0xfffff, you get a
027:             * fingerprint: two nodes with the same fingerprint have the same local name
028:             * and namespace URI.
029:             *
030:             * @return an integer name code, which may be used to obtain the actual node
031:             *         name from the name pool
032:             * @see net.sf.saxon.om.NamePool#allocate allocate
033:             * @see net.sf.saxon.om.NamePool#getFingerprint getFingerprint
034:             */
035:
036:            public int getNameCode() {
037:                return -1;
038:            }
039:
040:            public int getNodeKind() {
041:                return Type.DOCUMENT;
042:            }
043:
044:            /**
045:             * Get fingerprint. The fingerprint is a coded form of the expanded name
046:             * of the node: two nodes
047:             * with the same name code have the same namespace URI and the same local name.
048:             * A fingerprint of -1 should be returned for a node with no name.
049:             *
050:             * @return an integer fingerprint; two nodes with the same fingerprint have
051:             *         the same expanded QName
052:             */
053:
054:            public int getFingerprint() {
055:                return -1;
056:            }
057:
058:            /**
059:             * Get the local part of the name of this node. This is the name after the ":" if any.
060:             *
061:             * @return the local part of the name. For an unnamed node, returns "". Unlike the DOM
062:             *         interface, this returns the full name in the case of a non-namespaced name.
063:             */
064:
065:            public String getLocalPart() {
066:                return "";
067:            }
068:
069:            /**
070:             * Get the URI part of the name of this node. This is the URI corresponding to the
071:             * prefix, or the URI of the default namespace if appropriate.
072:             *
073:             * @return The URI of the namespace of this node. For an unnamed node,
074:             *         or for a node with an empty prefix, return an empty
075:             *         string.
076:             */
077:
078:            public String getURI() {
079:                return "";
080:            }
081:
082:            /**
083:             * Get the display name of this node. For elements and attributes this is [prefix:]localname.
084:             * For unnamed nodes, it is an empty string.
085:             *
086:             * @return The display name of this node. For a node with no name, return
087:             *         an empty string.
088:             */
089:
090:            public String getDisplayName() {
091:                return "";
092:            }
093:
094:            /**
095:             * Get the prefix of the name of the node. This is defined only for elements and attributes.
096:             * If the node has no prefix, or for other kinds of node, return a zero-length string.
097:             *
098:             * @return The prefix of the name of the node.
099:             */
100:
101:            public String getPrefix() {
102:                return "";
103:            }
104:
105:            /**
106:             * Get the root node, if it is a document node.
107:             *
108:             * @return the DocumentInfo representing the containing document. If this
109:             *         node is part of a tree that does not have a document node as its
110:             *         root, return null.
111:             */
112:
113:            public DocumentInfo getDocumentRoot() {
114:                return this ;
115:            }
116:
117:            /**
118:             * Get the element with a given ID, if any
119:             *
120:             * @param id the required ID value
121:             * @return the element with the given ID, or null if there is no such ID
122:             *         present (or if the parser has not notified attributes as being of
123:             *         type ID)
124:             * @since 8.4
125:             */
126:
127:            public NodeInfo selectID(String id) {
128:                if (node == null) {
129:                    tryToConstruct();
130:                }
131:                return ((DocumentInfo) node).selectID(id);
132:            }
133:
134:            /**
135:             * Get the unparsed entity with a given name
136:             *
137:             * @param name the name of the entity
138:             * @return if the entity exists, return an array of two Strings, the first
139:             *         holding the system ID of the entity, the second holding the public
140:             *         ID if there is one, or null if not. If the entity does not exist,
141:             *         the method returns null. Applications should be written on the
142:             *         assumption that this array may be extended in the future to provide
143:             *         additional information.
144:             * @since 8.4
145:             */
146:
147:            public String[] getUnparsedEntity(String name) {
148:                return null;
149:            }
150:
151:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.