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, wait
endSelectedParentNode, startSelectedParentNode
public final void setSelection(Pattern selection)
setSelection
in interface Watch
selection
- the streamable XPath expressionpublic final Pattern getSelection()
getSelection
in interface Watch
public final void setPipelineConfiguration(PipelineConfiguration pipe)
setPipelineConfiguration
in interface Watch
pipe
- the PipelineConfiguration in usepublic PipelineConfiguration getPipelineConfiguration()
getPipelineConfiguration
in interface Watch
public final void setNamespaceResolver(NamespaceResolver resolver)
setNamespaceResolver
in interface Watch
resolver
- the namespace resolver to be usedpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface Watch
public void setAnchorNode(FleetingNode anchor)
setAnchorNode
in interface Watch
anchor
- The anchor node within which the watch is scopedpublic FleetingNode getAnchorNode()
getAnchorNode
in interface Watch
public void open() throws XPathException
open
in interface Watch
XPathException
public void notifySelectedLeafNode(FleetingNode node, int locationId) throws XPathException
notifySelectedLeafNode
in interface Watch
node
- the node that was matched.locationId
- the location for use in error messagesXPathException
public void close() throws XPathException
close
in interface Watch
XPathException
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.