public abstract class AbstractWatch extends 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.
|
FleetingNode |
getAnchorNode()
Get the anchor node for the watch.
|
NamespaceResolver |
getNamespaceResolver()
Get the namespace resolver in use by the Watch
|
PipelineConfiguration |
getPipelineConfiguration()
Get the pipeline configuration in use
|
Pattern |
getSelection()
Get the selection (that is, the restricted XPath expression) that defines
the nodes that this Watch is looking for
|
void |
notifySelectedLeafNode(FleetingNode node,
int locationId)
Signal that a node (other than an element) that matches the selection
has been found.
|
void |
open()
Open the watch.
|
void |
setAnchorNode(FleetingNode anchor)
Set the anchor node for the watch.
|
void |
setNamespaceResolver(NamespaceResolver resolver)
Set a NamespaceResolver for use by the Watch
|
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the PipelineConfiguration in use
|
void |
setSelection(Pattern selection)
Set the selection (that is, the streamable XPath expression) that defines
the nodes that this Watch is looking for
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendSelectedParentNode, startSelectedParentNodepublic final void setSelection(Pattern selection)
setSelection in interface Watchselection - the streamable XPath expressionpublic final Pattern getSelection()
getSelection in interface Watchpublic final void setPipelineConfiguration(PipelineConfiguration pipe)
setPipelineConfiguration in interface Watchpipe - the PipelineConfiguration in usepublic PipelineConfiguration getPipelineConfiguration()
getPipelineConfiguration in interface Watchpublic final void setNamespaceResolver(NamespaceResolver resolver)
setNamespaceResolver in interface Watchresolver - the namespace resolver to be usedpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface Watchpublic void setAnchorNode(FleetingNode anchor)
setAnchorNode in interface Watchanchor - The anchor node within which the watch is scopedpublic FleetingNode getAnchorNode()
getAnchorNode in interface Watchpublic void open()
throws XPathException
open in interface WatchXPathExceptionpublic void notifySelectedLeafNode(FleetingNode node, int locationId) throws XPathException
notifySelectedLeafNode in interface Watchnode - the node that was matched.locationId - the location for use in error messagesXPathExceptionpublic void close()
throws XPathException
close in interface WatchXPathExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.