net.sf.saxon.event

Class SequenceReceiver

public abstract class SequenceReceiver extends 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 PipelineConfigurationpipelineConfiguration
protected booleanpreviousAtomic
protected StringsystemId
Constructor Summary
SequenceReceiver()
Create a SequenceReceiver
Method Summary
abstract voidappend(Item item, int locationId, int copyNamespaces)
Append an arbitrary item (node or atomic value) to the output
ConfigurationgetConfiguration()
Get the Saxon Configuration
NamePoolgetNamePool()
Get the name pool
PipelineConfigurationgetPipelineConfiguration()
StringgetSystemId()
Get the system ID
voidopen()
Start the output process
voidsetPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
voidsetSystemId(String systemId)
Set the system ID
voidsetUnparsedEntity(String name, String systemID, String publicID)
Notify an unparsed entity URI.

Field Detail

pipelineConfiguration

protected PipelineConfiguration pipelineConfiguration

previousAtomic

protected boolean previousAtomic

systemId

protected String systemId

Constructor Detail

SequenceReceiver

public SequenceReceiver()
Create a SequenceReceiver

Method Detail

append

public abstract void append(Item item, int locationId, int copyNamespaces)
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 ALL_NAMESPACES, LOCAL_NAMESPACES, 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()

getSystemId

public String getSystemId()
Get the system ID

Returns: the system ID that was supplied using the setSystemId() method

open

public void open()
Start the output process

setPipelineConfiguration

public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)

setSystemId

public void setSystemId(String systemId)
Set the system ID

Parameters: systemId the URI used to identify the tree being passed across this interface

setUnparsedEntity

public void setUnparsedEntity(String name, String systemID, String publicID)
Notify an unparsed entity URI.

Parameters: name The name of the unparsed entity systemID The system identifier of the unparsed entity publicID The public identifier of the unparsed entity