public class Sink extends SequenceReceiver
pipelineConfiguration, previousAtomic, systemId| Constructor and Description |
|---|
Sink(PipelineConfiguration pipe) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Item item,
Location locationId,
int copyNamespaces)
Append an arbitrary item (node or atomic value) to the output
|
void |
characters(java.lang.CharSequence chars,
Location locationId,
int properties)
Character data
|
void |
close()
End of event stream
|
void |
comment(java.lang.CharSequence chars,
Location locationId,
int properties)
Output a comment
|
void |
endDocument()
Notify the end of a document node
|
void |
endElement()
End of element
|
void |
open()
Start of event stream
|
void |
processingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
Processing Instruction
|
void |
setUnparsedEntity(java.lang.String name,
java.lang.String uri,
java.lang.String publicId)
Set the URI for an unparsed entity in the document.
|
void |
startDocument(int properties)
Start of a document node.
|
void |
startElement(NodeName elemName,
SchemaType type,
AttributeMap attributes,
NamespaceMap namespaces,
Location location,
int properties)
Notify the start of an element
|
boolean |
usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events
|
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemIdpublic Sink(PipelineConfiguration pipe)
public void open()
open in interface Receiveropen in class SequenceReceiverpublic void close()
public void startDocument(int properties)
properties - bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOptionpublic void endDocument()
public void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
elemName - the name of the element.type - the type annotation of the element.attributes - the attributes of this elementnamespaces - the in-scope namespaces of this element: generally this is all the in-scope
namespaces, without relying on inheriting namespaces from parent elementslocation - an object providing information about the module, line, and column where the node originatedproperties - bit-significant properties of the element node. If there are no relevant
properties, zero is supplied. The definitions of the bits are in class ReceiverOptionXPathException - if an error occurspublic void endElement()
public void characters(java.lang.CharSequence chars,
Location locationId,
int properties)
chars - The characterslocationId - provides information such as line number and system ID.properties - Bit significant value. The following bits are defined:
public void processingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
target - The PI name. This must be a legal name (it will not be checked).data - The data portion of the processing instructionlocationId - provides information such as line number and system ID.properties - Additional information about the PI.public void comment(java.lang.CharSequence chars,
Location locationId,
int properties)
chars - The content of the commentlocationId - provides information such as line number and system ID.properties - Additional information about the comment.public void append(Item item, Location locationId, int copyNamespaces)
append in interface Receiverappend in class SequenceReceiveritem - 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 ReceiverOption.ALL_NAMESPACES; the default (0) meanspublic void setUnparsedEntity(java.lang.String name,
java.lang.String uri,
java.lang.String publicId)
setUnparsedEntity in interface ReceiversetUnparsedEntity in class SequenceReceivername - The name of the unparsed entityuri - The system identifier of the unparsed entitypublicId - The public identifier of the unparsed entitypublic boolean usesTypeAnnotations()
Copyright (c) 2004-2020 Saxonica Limited.