public class SequenceWrapperPE extends SequenceWrapper
This class adds to the superclass the ability to serialize maps.
RESULT_NS
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
SequenceWrapperPE(Receiver destination)
Create a sequence wrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
append(Item item,
Location locationId,
int copyNamespaces)
Output an item (atomic value or node) to the sequence
|
void |
open()
Start the output process
|
attribute, characters, close, comment, endDocument, endElement, getDestination, namespace, processingInstruction, startContent, startDocument, startElement, usesTypeAnnotations
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver, setPipelineConfiguration, setSystemId, setUnparsedEntity
public SequenceWrapperPE(Receiver destination)
destination
- the sequence being wrappedpublic void open() throws XPathException
SequenceReceiver
open
in interface Receiver
open
in class SequenceWrapper
XPathException
- if an error occurspublic void append(Item item, Location locationId, int copyNamespaces) throws XPathException
append
in class SequenceWrapper
item
- the item to be appendedlocationId
- the location of the calling instruction, for diagnosticscopyNamespaces
- if the item is an element node, this indicates whether its namespaces
need to be copied. Values are NodeInfo.ALL_NAMESPACES
,
NodeInfo.LOCAL_NAMESPACES
, NodeInfo.NO_NAMESPACES
XPathException
- if the operation failsCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.