|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.validate.AbstractWatch
public abstract class AbstractWatch
A Watch represents a class that is interested in looking at nodes for the purpose of evaluating uniqueness and key constraints. A SelectorWatch looks for the nodes that match the selector in a unique, key, or keyref constraint. There are two concrete subclasses: one for key/unique, the other for keyref
Constructor Summary | |
---|---|
AbstractWatch()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.saxonica.stream.watch.Watch |
---|
endSelectedParentNode, startSelectedParentNode |
Constructor Detail |
---|
public AbstractWatch()
Method Detail |
---|
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 messages
XPathException
public void close() throws XPathException
close
in interface Watch
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |