1 package net.sf.saxon.pull; 2 3 import net.sf.saxon.event.PipelineConfiguration; 4 import net.sf.saxon.om.AttributeCollection; 5 import net.sf.saxon.om.NamespaceDeclarations; 6 import net.sf.saxon.trans.XPathException; 7 import net.sf.saxon.value.AtomicValue; 8 9 import javax.xml.transform.SourceLocator ; 10 11 19 20 public interface PullProvider { 21 22 24 29 30 public static final int START_OF_INPUT = 0; 31 32 38 39 public static final int ATOMIC_VALUE = 1; 40 41 47 48 public static final int START_DOCUMENT = 2; 49 50 55 56 public static final int END_DOCUMENT = 3; 57 58 81 82 public static final int START_ELEMENT = 4; 83 84 92 93 public static final int END_ELEMENT = 5; 94 95 101 102 public static final int ATTRIBUTE = 6; 103 104 110 111 public static final int NAMESPACE = 7; 112 113 123 124 public static final int TEXT = 8; 125 126 130 131 public static final int COMMENT = 9; 132 133 140 141 public static final int PROCESSING_INSTRUCTION = 10; 142 143 147 148 public static final int END_OF_INPUT = -1; 149 150 154 155 public void setPipelineConfiguration(PipelineConfiguration pipe); 156 157 160 161 public PipelineConfiguration getPipelineConfiguration(); 162 163 168 169 public int next() throws XPathException; 170 171 177 178 public int current(); 179 180 194 195 public AttributeCollection getAttributes() throws XPathException; 196 197 216 217 public NamespaceDeclarations getNamespaceDeclarations() throws XPathException; 218 219 227 228 public int skipToMatchingEnd() throws XPathException; 229 230 237 238 public void close(); 239 240 253 254 public int getNameCode(); 255 256 268 269 public int getFingerprint(); 270 271 285 286 public CharSequence getStringValue() throws XPathException; 287 288 297 298 public int getTypeAnnotation(); 299 300 305 306 public AtomicValue getAtomicValue(); 307 308 315 316 public SourceLocator getSourceLocator(); 317 318 319 } 320 321 | Popular Tags |