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.om.NamePool; 7 import net.sf.saxon.trans.XPathException; 8 import net.sf.saxon.value.AtomicValue; 9 10 import javax.xml.transform.SourceLocator ; 11 12 17 18 public class PullFilter implements PullProvider { 19 20 private PullProvider base; 21 private PipelineConfiguration pipe; 22 protected int currentEvent; 23 24 28 29 public PullFilter(PullProvider base) { 30 this.base = base; 31 setPipelineConfiguration(base.getPipelineConfiguration()); 32 } 33 34 38 39 public void setPipelineConfiguration(PipelineConfiguration pipe) { 40 this.pipe = pipe; 41 base.setPipelineConfiguration(pipe); 42 } 43 44 47 48 public PipelineConfiguration getPipelineConfiguration() { 49 return pipe; 50 } 51 52 55 56 public final NamePool getNamePool() { 57 return getPipelineConfiguration().getConfiguration().getNamePool(); 58 } 59 60 63 64 public PullProvider getUnderlyingProvider() { 65 return base; 66 } 67 68 78 79 public int next() throws XPathException { 80 return base.next(); 81 } 82 83 90 91 public int current() { 92 return currentEvent; 93 } 94 95 109 110 public AttributeCollection getAttributes() throws XPathException { 111 return base.getAttributes(); 112 } 113 114 133 134 public NamespaceDeclarations getNamespaceDeclarations() throws XPathException { 135 return base.getNamespaceDeclarations(); 136 } 137 138 144 145 public int skipToMatchingEnd() throws XPathException { 146 return base.skipToMatchingEnd(); 147 } 148 149 156 157 public void close() { 158 base.close(); 159 } 160 161 175 176 public int getNameCode() { 177 return base.getNameCode(); 178 } 179 180 193 194 public int getFingerprint() { 195 return base.getFingerprint(); 196 } 197 198 210 211 public CharSequence getStringValue() throws XPathException { 212 return base.getStringValue(); 213 } 214 215 220 221 public AtomicValue getAtomicValue() { 222 return base.getAtomicValue(); 223 } 224 225 233 234 public int getTypeAnnotation() { 235 return base.getTypeAnnotation(); 236 } 237 238 245 246 public SourceLocator getSourceLocator() { 247 return base.getSourceLocator(); 248 } 249 } 250 251 | Popular Tags |