|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 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 Watch
public void open()
throws XPathException
open in interface WatchXPathException
public void notifySelectedLeafNode(FleetingNode node,
int locationId)
throws XPathException
notifySelectedLeafNode in interface Watchnode - the node that was matched.locationId - the location for use in error messages
XPathException
public void close()
throws XPathException
close in interface WatchXPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||