| java.lang.Object net.sf.saxon.event.SequenceReceiver net.sf.saxon.event.SequenceWriter net.sf.saxon.event.SequenceOutputter
SequenceOutputter | final public class SequenceOutputter extends SequenceWriter (Code) | | This outputter is used when writing a sequence of atomic values and nodes, that
is, when xsl:variable is used with content and an "as" attribute. The outputter
builds the sequence and provides access to it. (It isn't really an outputter at all,
it doesn't pass the events to anyone, it merely constructs the sequence in memory
and provides access to it). Note that the event sequence can include calls such as
startElement and endElement that require trees to be built. If nodes such as attributes
and text nodes are received while an element is being constructed, the nodes are added
to the tree. Otherwise, "orphan" nodes (nodes with no parent) are created and added
directly to the sequence.
This class is not used to build temporary trees. For that, the ComplexContentOutputter
is used.
author: Michael H. Kay |
SequenceOutputter | public SequenceOutputter()(Code) | | Create a new SequenceOutputter
|
SequenceOutputter | public SequenceOutputter(int estimatedSize)(Code) | | |
getFirstItem | public Item getFirstItem()(Code) | | Get the first item in the sequence that has been built
|
getList | public ArrayList getList()(Code) | | Get the list containing the sequence of items
|
iterate | public SequenceIterator iterate()(Code) | | Get an iterator over the sequence of items that has been constructed
|
popLastItem | public Item popLastItem()(Code) | | Get the last item in the sequence that has been built, and remove it
|
write | public void write(Item item)(Code) | | Abstract method to be supplied by subclasses: output one item in the sequence.
|
Methods inherited from net.sf.saxon.event.SequenceWriter | public void append(Item item, int locationId, int copyNamespaces) throws XPathException(Code)(Java Doc) public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException(Code)(Java Doc) public void characters(CharSequence s, int locationId, int properties) throws XPathException(Code)(Java Doc) public void close() throws XPathException(Code)(Java Doc) public void comment(CharSequence comment, int locationId, int properties) throws XPathException(Code)(Java Doc) public void endDocument() throws XPathException(Code)(Java Doc) public void endElement() throws XPathException(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public boolean hasOpenNodes()(Code)(Java Doc) public void namespace(int nscode, int properties) throws XPathException(Code)(Java Doc) public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException(Code)(Java Doc) public void setSystemId(String systemId)(Code)(Java Doc) public void startContent() throws XPathException(Code)(Java Doc) public void startDocument(int properties) throws XPathException(Code)(Java Doc) public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException(Code)(Java Doc) abstract public void write(Item item) throws XPathException(Code)(Java Doc)
|
|
|