public class ItemCheckingFeed extends ItemFeed
pipelineConfiguration, systemId
Constructor and Description |
---|
ItemCheckingFeed(Expression checker,
ItemFeed result,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
void |
append(Item item)
Supply an item to the feed
|
void |
close()
Signal the end of the sequence of items
|
void |
endDocument()
Notify the end of a document node
|
void |
endElement()
Notify the end of an element.
|
void |
endSelectedParentNode(Location locationId)
Signal that the endElement event has occurred for the element whose startElement
event caused the Watch to be activated.
|
void |
startDocument(int properties)
Notify the 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, supplying all attributes and namespaces
|
void |
startElement(NodeName elemName,
SchemaType type,
Location location,
int properties)
Notify the start of an element
|
Receiver |
startSelectedParentNode(FleetingParentNode node,
Location locationId)
Signal that an element or document node has been found that matches the selection that this
Watch is looking for.
|
append, dynamicError, getContext, getExpression, getResult, getTerminator, hasFailed, open, processItems, setExpression, setHasFailed, setTerminator
attribute, characters, comment, getNextOutputter, namespace, open, processingInstruction, setUnparsedEntity, startContent, usesTypeAnnotations
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlesAppend
public ItemCheckingFeed(Expression checker, ItemFeed result, XPathContext context)
public Receiver startSelectedParentNode(FleetingParentNode node, Location locationId) throws XPathException
ItemFeed
startSelectedParentNode
in class ItemFeed
node
- the element or document node whose start event has been matchedlocationId
- the location associated with the element or document node (may be
the location of the instruction that created it)XPathException
- May be raised if a dynamic error occurspublic void endSelectedParentNode(Location locationId) throws XPathException
ItemFeed
endSelectedParentNode
in class ItemFeed
locationId
- the location of the elementXPathException
- May be raised if a constraint implemented by this
Watch is violatedpublic void append(Item item) throws XPathException
append
in interface Receiver
append
in class ItemFeed
item
- the item being fedXPathException
- to report any failurepublic void close() throws XPathException
close
in interface Receiver
close
in class ItemFeed
XPathException
- to report any failurepublic void startDocument(int properties) throws XPathException
ProxyOutputter
startDocument
in interface Receiver
startDocument
in class ProxyOutputter
properties
- bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOption
XPathException
- if an error occurspublic void startElement(NodeName elemName, SchemaType type, Location location, int properties) throws XPathException
ProxyOutputter
startElement
in class ProxyOutputter
elemName
- the name of the element.type
- the type annotation of the element.location
- 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 ReceiverOption
XPathException
- if an error occurspublic void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException
ProxyOutputter
startElement
in interface Receiver
startElement
in class ProxyOutputter
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 ReceiverOption
XPathException
- if an error occurspublic void endElement() throws XPathException
ProxyOutputter
endElement
in interface Receiver
endElement
in class ProxyOutputter
XPathException
- if an error occurspublic void endDocument() throws XPathException
ProxyOutputter
endDocument
in interface Receiver
endDocument
in class ProxyOutputter
XPathException
- if an error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.