Package com.saxonica.ee.stream.feed
Class ElementCreatorFeed
java.lang.Object
net.sf.saxon.event.Outputter
net.sf.saxon.event.ProxyOutputter
com.saxonica.ee.stream.feed.ItemFeed
com.saxonica.ee.stream.feed.ComplexNodeEventFeed
com.saxonica.ee.stream.feed.ElementCreatorFeed
This event feed supports instructions that create a document or element node. The events
representing the start and end of the element or document are written to the destination
receiver during the open() and close() calls. Between these two calls, the child instruction
representing the content of the document or element pushes its output to the same destination
receiver.
The instruction-dependent code is contained in the processLeft() and processRight() methods
-
Field Summary
Fields inherited from class com.saxonica.ee.stream.feed.ComplexNodeEventFeed
next
Fields inherited from class net.sf.saxon.event.Outputter
pipelineConfiguration, systemId
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
Constructor Summary
ConstructorsConstructorDescriptionElementCreatorFeed
(Expression exp, ItemFeed parentExpressionFeed, XPathContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
processLeft
(XPathContext context) In streaming mode, process the first half of the instruction (for example, to start a new document or element)protected void
processRight
(XPathContext context) In streaming mode, process the right half of the instruction (for example, to end a new document or element)toString()
Methods inherited from class com.saxonica.ee.stream.feed.ComplexNodeEventFeed
append, attribute, characters, close, comment, endDocument, endElement, endSelectedParentNode, namespace, open, processingInstruction, setComplexContentOutputter, startContent, startDocument, startElement, startElement, startSelectedParentNode
Methods inherited from class com.saxonica.ee.stream.feed.ItemFeed
append, dynamicError, getContext, getExpression, getResultFeed, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setTerminator
Methods inherited from class net.sf.saxon.event.ProxyOutputter
getNextOutputter, open, setUnparsedEntity, usesTypeAnnotations
Methods inherited from class net.sf.saxon.event.Outputter
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId, spreadStartElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.saxon.event.Receiver
handlesAppend
-
Constructor Details
-
ElementCreatorFeed
-
-
Method Details
-
processLeft
In streaming mode, process the first half of the instruction (for example, to start a new document or element)- Specified by:
processLeft
in classComplexNodeEventFeed
- Parameters:
context
- The dynamic context- Throws:
XPathException
- if a dynamic error occurs
-
processRight
In streaming mode, process the right half of the instruction (for example, to end a new document or element)- Specified by:
processRight
in classComplexNodeEventFeed
- Parameters:
context
- The dynamic context- Throws:
XPathException
- if a dynamic error occurs
-
toString
-