net.sf.saxon.event

Class SequenceReceiver

Implemented Interfaces:
Receiver, Result
Known Direct 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

protected PipelineConfiguration
pipelineConfiguration
protected boolean
previousAtomic
protected String
systemId

Constructor Summary

SequenceReceiver()
Create a SequenceReceiver

Method Summary

abstract void
append(Item item, int locationId, int copyNamespaces)
Append an arbitrary item (node or atomic value) to the output
Configuration
getConfiguration()
Get the Saxon Configuration
NamePool
getNamePool()
Get the name pool
PipelineConfiguration
getPipelineConfiguration()
Get the pipeline configuration
String
getSystemId()
Get the system ID
void
open()
Start the output process
void
setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Set the pipeline configuration
void
setSystemId(String systemId)
Set the system ID
void
setUnparsedEntity(String name, String systemID, String publicID)
Notify an unparsed entity URI.

Field Details

pipelineConfiguration

protected PipelineConfiguration pipelineConfiguration

previousAtomic

protected boolean previousAtomic

systemId

protected String systemId

Constructor Details

SequenceReceiver

public SequenceReceiver()
Create a SequenceReceiver

Method Details

append

public abstract void append(Item item,
                            int locationId,
                            int copyNamespaces)
            throws XPathException
Append an arbitrary item (node or atomic value) to the output
Parameters:
item - the item to be appended
locationId - the location of the calling instruction, for diagnostics
copyNamespaces - if the item is an element node, this indicates whether its namespaces need to be copied. Values are NodeInfo.ALL_NAMESPACES, NodeInfo.LOCAL_NAMESPACES, NodeInfo.NO_NAMESPACES

getConfiguration

public Configuration getConfiguration()
Get the Saxon Configuration
Returns:
the Configuration

getNamePool

public NamePool getNamePool()
Get the name pool
Returns:
the Name Pool that was supplied using the setConfiguration() method

getPipelineConfiguration

public PipelineConfiguration getPipelineConfiguration()
Get the pipeline configuration
Specified by:
getPipelineConfiguration in interface Receiver
Returns:
the pipeline configuration

getSystemId

public String getSystemId()
Get the system ID
Returns:
the system ID that was supplied using the setSystemId() method

open

public void open()
            throws XPathException
Start the output process
Specified by:
open in interface Receiver

setPipelineConfiguration

public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Set the pipeline configuration
Specified by:
setPipelineConfiguration in interface Receiver
Parameters:

setSystemId

public void setSystemId(String systemId)
Set the system ID
Specified by:
setSystemId in interface Receiver
Parameters:
systemId - the URI used to identify the tree being passed across this interface

setUnparsedEntity

public void setUnparsedEntity(String name,
                              String systemID,
                              String publicID)
            throws XPathException
Notify an unparsed entity URI.
Specified by:
setUnparsedEntity in interface Receiver
Parameters:
name - The name of the unparsed entity
systemID - The system identifier of the unparsed entity
publicID - The public identifier of the unparsed entity