public final class SequenceCollector extends SequenceWriter
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
SequenceCollector(PipelineConfiguration pipe)
Create a new SequenceOutputter
|
SequenceCollector(PipelineConfiguration pipe,
int estimatedSize) |
Modifier and Type | Method and Description |
---|---|
static Outputter |
allocateSequenceOutputter(XPathContext context,
HostLanguage hostLang)
Allocate a SequenceCollector.
|
Item |
getFirstItem()
Get the first item in the sequence that has been built
|
java.util.List<Item> |
getList()
Get the list containing the sequence of items
|
Sequence |
getSequence()
Get the sequence that has been built
|
SequenceIterator |
iterate()
Get an iterator over the sequence of items that has been constructed
|
void |
reset()
Clear the contents of the SequenceCollector and make it available for reuse
|
void |
write(Item item)
Method to be supplied by subclasses: output one item in the sequence.
|
append, characters, close, comment, endDocument, endElement, getTreeModel, processingInstruction, setTreeModel, setUnparsedEntity, startDocument, startElement, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemId
public SequenceCollector(PipelineConfiguration pipe)
pipe
- the pipeline configurationpublic SequenceCollector(PipelineConfiguration pipe, int estimatedSize)
public static Outputter allocateSequenceOutputter(XPathContext context, HostLanguage hostLang)
context
- dynamic XPath contexthostLang
- host language (XSLT/XQuery)public void reset()
public void write(Item item)
write
in class SequenceWriter
item
- the item to be written to the sequencepublic Sequence getSequence()
public SequenceIterator iterate()
public java.util.List<Item> getList()
public Item getFirstItem()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.