1 package com.icl.saxon.om; 2 import com.icl.saxon.output.Outputter; 3 import com.icl.saxon.pattern.NodeTest; 4 5 import javax.xml.transform.Source ; 6 import javax.xml.transform.TransformerException ; 7 8 14 15 public interface NodeInfo extends Source { 16 17 20 public static final short NODE = 0; public static final short ELEMENT = 1; 22 public static final short ATTRIBUTE = 2; 23 public static final short TEXT = 3; 24 public static final short PI = 7; 25 public static final short COMMENT = 8; 26 public static final short ROOT = 9; 27 public static final short NAMESPACE = 13; 28 public static final short NUMBER_OF_TYPES = 13; 29 public static final short NONE = 9999; 31 35 36 public short getNodeType(); 37 38 44 45 public boolean isSameNode(NodeInfo other); 46 47 53 54 public String getSystemId(); 55 56 60 61 public String getBaseURI(); 62 63 67 68 public int getLineNumber(); 69 70 78 79 public int compareOrder(NodeInfo other); 80 81 87 88 public String getStringValue(); 89 90 99 100 public int getNameCode(); 101 102 108 109 public int getFingerprint(); 110 111 115 116 public String getLocalName(); 117 118 122 123 public String getPrefix(); 124 125 131 132 public String getURI(); 133 134 140 141 public String getDisplayName(); 142 143 146 147 public NodeInfo getParent(); 148 149 156 157 public AxisEnumeration getEnumeration(byte axisNumber, NodeTest nodeTest); 158 159 167 168 public String getAttributeValue(String uri, String localName); 169 170 175 176 public String getAttributeValue(int fingerprint); 177 178 182 183 public DocumentInfo getDocumentRoot(); 184 185 190 191 public boolean hasChildNodes(); 192 193 200 201 public String generateId(); 202 203 206 207 public void copy(Outputter out) throws TransformerException ; 208 209 212 213 public void copyStringValue(Outputter out) throws TransformerException ; 214 215 222 223 public void outputNamespaceNodes(Outputter out, boolean includeAncestors) 224 throws TransformerException ; 225 226 } 227 228 | Popular Tags |