1 package net.sf.saxon.event; 2 import net.sf.saxon.Configuration; 3 import net.sf.saxon.om.Item; 4 import net.sf.saxon.om.NamePool; 5 import net.sf.saxon.trans.XPathException; 6 7 12 13 public abstract class SequenceReceiver implements Receiver { 14 15 protected boolean previousAtomic = false; 16 17 protected PipelineConfiguration pipelineConfiguration; 18 19 public SequenceReceiver(){} 20 21 public PipelineConfiguration getPipelineConfiguration() { 22 return pipelineConfiguration; 23 } 24 25 public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration) { 26 this.pipelineConfiguration = pipelineConfiguration; 27 } 28 29 public Configuration getConfiguration() { 30 return pipelineConfiguration.getConfiguration(); 31 } 32 33 public void setSystemId(String systemId) {} 34 35 public String getSystemId() { 36 return null; 37 } 38 39 public void setUnparsedEntity(String name, String systemId, String publicId) throws XPathException {} 40 41 44 45 public void open() throws XPathException { 46 previousAtomic = false; 47 } 48 49 52 53 public void append(Item item, int locationId, int copyNamespaces) throws XPathException { 54 throw new UnsupportedOperationException ("append() method not supported in " + this.getClass()); 55 } 56 57 61 62 public NamePool getNamePool() { 63 return getConfiguration().getNamePool(); 64 } 65 } 66 67 | Popular Tags |