public class ElementCreatorFeed extends ComplexNodeEventFeed
The instruction-dependent code is contained in the processLeft() and processRight() methods
Constructor and Description |
---|
ElementCreatorFeed(Expression exp,
Feed parentExpressionFeed,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
protected static void |
generateElementEnd(ComplexNodeEventFeed feed,
XPathContext context)
In streaming mode, process the right half of the instruction (for example, to end a new document or element)
|
protected static void |
generateElementStart(ComplexNodeEventFeed feed,
XPathContext context)
In streaming mode, process the first half of an element creation instruction (to start a new element)
|
protected 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)
|
close, getReceiver, open, processItem, setReceiver
dynamicError, endSelectedParentNode, getContext, getExpression, getPipelineConfiguration, getResult, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setPipelineConfiguration, setTerminator, startSelectedParentNode
public ElementCreatorFeed(Expression exp, Feed parentExpressionFeed, XPathContext context)
protected void processLeft(XPathContext context) throws XPathException
processLeft
in class ComplexNodeEventFeed
context
- The dynamic contextXPathException
- if a dynamic error occursprotected void processRight(XPathContext context) throws XPathException
processRight
in class ComplexNodeEventFeed
context
- The dynamic contextXPathException
- if a dynamic error occursprotected static void generateElementStart(ComplexNodeEventFeed feed, XPathContext context) throws XPathException
feed
- the Feed that is processing the instruction in streaming modecontext
- XPathContext object.XPathException
- if a dynamic error occursprotected static void generateElementEnd(ComplexNodeEventFeed feed, XPathContext context) throws XPathException
feed
- the feed to which the element end event should be sentcontext
- XPathContext object.XPathException
- if a dynamic error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.