1 package net.sf.saxon.pull; 2 3 import net.sf.saxon.expr.XPathContext; 4 import net.sf.saxon.instruct.DocumentInstr; 5 import net.sf.saxon.om.DocumentInfo; 6 import net.sf.saxon.om.NodeInfo; 7 import net.sf.saxon.type.Type; 8 9 14 15 public class UnconstructedDocument extends UnconstructedParent implements DocumentInfo { 16 17 public UnconstructedDocument(DocumentInstr instruction, XPathContext context) { 18 super(instruction, context); 19 } 20 21 33 34 public int getNameCode() { 35 return -1; 36 } 37 38 public int getNodeKind() { 39 return Type.DOCUMENT; 40 } 41 42 51 52 public int getFingerprint() { 53 return -1; 54 } 55 56 62 63 public String getLocalPart() { 64 return ""; 65 } 66 67 75 76 public String getURI() { 77 return ""; 78 } 79 80 87 88 public String getDisplayName() { 89 return ""; 90 } 91 92 98 99 public String getPrefix() { 100 return ""; 101 } 102 103 110 111 public DocumentInfo getDocumentRoot() { 112 return this; 113 } 114 115 124 125 public NodeInfo selectID(String id) { 126 if (node == null) { 127 tryToConstruct(); 128 } 129 return ((DocumentInfo)node).selectID(id); 130 } 131 132 144 145 public String [] getUnparsedEntity(String name) { 146 return null; 147 } 148 149 } 150 | Popular Tags |