Package net.sf.saxon.event
Class SequenceReceiver
- java.lang.Object
-
- net.sf.saxon.event.SequenceReceiver
-
- All Implemented Interfaces:
javax.xml.transform.Result,Receiver
- Direct Known Subclasses:
ComplexContentOutputter,ProxyReceiver,SequenceWrapper,SequenceWriter,TeeOutputter,TreeReceiver
public abstract class SequenceReceiver extends java.lang.Object implements Receiver
SequenceReceiver: this extension of the Receiver interface is used when processing a sequence constructor. It differs from the Receiver in allowing items (atomic values or nodes) to be added to the sequence, not just tree-building events.
-
-
Field Summary
Fields Modifier and Type Field Description protected PipelineConfigurationpipelineConfigurationprotected booleanpreviousAtomicprotected java.lang.StringsystemId
-
Constructor Summary
Constructors Constructor Description SequenceReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Item item, int locationId, int copyNamespaces)Output an item (atomic value or node) to the sequenceConfigurationgetConfiguration()NamePoolgetNamePool()Get the name poolPipelineConfigurationgetPipelineConfiguration()Get the pipeline configurationjava.lang.StringgetSystemId()Get the system IDvoidopen()Start the output processvoidsetPipelineConfiguration(PipelineConfiguration pipelineConfiguration)Set the pipeline configurationvoidsetSystemId(java.lang.String systemId)Set the system IDvoidsetUnparsedEntity(java.lang.String name, java.lang.String systemId, java.lang.String publicId)Notify an unparsed entity URI.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.event.Receiver
attribute, characters, close, comment, endDocument, endElement, namespace, processingInstruction, startContent, startDocument, startElement
-
-
-
-
Field Detail
-
previousAtomic
protected boolean previousAtomic
-
pipelineConfiguration
protected PipelineConfiguration pipelineConfiguration
-
systemId
protected java.lang.String systemId
-
-
Method Detail
-
getPipelineConfiguration
public PipelineConfiguration getPipelineConfiguration()
Description copied from interface:ReceiverGet the pipeline configuration- Specified by:
getPipelineConfigurationin interfaceReceiver
-
setPipelineConfiguration
public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Description copied from interface:ReceiverSet the pipeline configuration- Specified by:
setPipelineConfigurationin interfaceReceiver
-
getConfiguration
public Configuration getConfiguration()
-
setSystemId
public void setSystemId(java.lang.String systemId)
Set the system ID- Specified by:
setSystemIdin interfaceReceiver- Specified by:
setSystemIdin interfacejavax.xml.transform.Result- Parameters:
systemId- the URI used to identify the tree being passed across this interface
-
getSystemId
public java.lang.String getSystemId()
Get the system ID- Specified by:
getSystemIdin interfacejavax.xml.transform.Result- Returns:
- the system ID that was supplied using the setSystemId() method
-
setUnparsedEntity
public void setUnparsedEntity(java.lang.String name, java.lang.String systemId, java.lang.String publicId) throws XPathExceptionDescription copied from interface:ReceiverNotify an unparsed entity URI.- Specified by:
setUnparsedEntityin interfaceReceiver- Parameters:
name- The name of the unparsed entitysystemId- The system identifier of the unparsed entitypublicId- The public identifier of the unparsed entity- Throws:
XPathException
-
open
public void open() throws XPathExceptionStart the output process- Specified by:
openin interfaceReceiver- Throws:
XPathException
-
append
public void append(Item item, int locationId, int copyNamespaces) throws XPathException
Output an item (atomic value or node) to the sequence- Throws:
XPathException
-
getNamePool
public NamePool getNamePool()
Get the name pool- Returns:
- the Name Pool that was supplied using the setConfiguration() method
-
-