public abstract class AbstractWatch extends java.lang.Object implements Watch
Constructor and Description |
---|
AbstractWatch() |
Modifier and Type | Method and Description |
---|---|
void |
close()
The close() method is called immediately before the Watch is destroyed, that is,
when the element whose declaration scopes the constraint implemented by this
Watch goes out of scope.
|
NamespaceResolver |
getNamespaceResolver()
Get the namespace resolver in use by the Watch
|
PipelineConfiguration |
getPipelineConfiguration()
Get the pipeline configuration in use
|
SequenceReceiver |
getReceiver()
Get a receiver to which start and end events for documents and elements can be
written.
|
void |
open(Terminator terminator)
Open the watch.
|
void |
processItem(Item item)
Signal that a node (other than an element) that matches the selection
has been found.
|
void |
setNamespaceResolver(NamespaceResolver resolver)
Set a NamespaceResolver for use by the Watch
|
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the PipelineConfiguration in use
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endSelectedParentNode, getAnchorNode, matchesNode, matchesNodesOfKind, setAnchorNode, startSelectedParentNode
public final void setPipelineConfiguration(PipelineConfiguration pipe)
setPipelineConfiguration
in interface Watch
pipe
- the PipelineConfiguration in usepublic final PipelineConfiguration getPipelineConfiguration()
getPipelineConfiguration
in interface Watch
public final void setNamespaceResolver(NamespaceResolver resolver)
setNamespaceResolver
in interface Watch
resolver
- the namespace resolver to be usedpublic final NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface Watch
public void open(Terminator terminator) throws XPathException
open
in interface Watch
terminator
- XPathException
- May be raised if a dynamic error occurspublic void processItem(Item item) throws XPathException
processItem
in interface Watch
item
- the node that was matched.XPathException
- May be raised if a dynamic error occurspublic void close() throws XPathException
close
in interface Watch
XPathException
- May be raised if a dynamic error occurspublic SequenceReceiver getReceiver()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.