|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saxonica.validate.AbstractWatch
com.saxonica.stream.watch.ComposingWatch
com.saxonica.stream.watch.VoidWatch
public class VoidWatch
This class is a Watch that always returns an empty sequence as its result.
| Constructor Summary | |
|---|---|
VoidWatch(Feed result,
Stack<XPathContext> contextStack)
Create the singleton VoidWatch |
|
| Method Summary | |
|---|---|
void |
endSelectedParentNode(int locationId)
Signal that the endElement event has occurred for the element whose startElement event caused the Watch to be activated. |
void |
notifySelectedLeafNode(FleetingNode node,
int locationId)
Signal that a node (other than an element) that matches the selection has been found. |
Receiver |
startSelectedParentNode(FleetingNode node,
int locationId)
Signal that an element has been found that matches the selection that this Watch is looking for. |
| Methods inherited from class com.saxonica.stream.watch.ComposingWatch |
|---|
close, getContext, getContextStack, getResult, open |
| Methods inherited from class com.saxonica.validate.AbstractWatch |
|---|
getAnchorNode, getNamespaceResolver, getPipelineConfiguration, getSelection, setAnchorNode, setNamespaceResolver, setPipelineConfiguration, setSelection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VoidWatch(Feed result,
Stack<XPathContext> contextStack)
| Method Detail |
|---|
public Receiver startSelectedParentNode(FleetingNode node,
int locationId)
throws XPathException
node - the element or document node whose start event has been matchedlocationId - the location associated with the element or document node (may be
the location of the instruction that created it)
ValidationException - May be raised if the constraint implemented by this
Watch is violated @param locationId
XPathException
public void notifySelectedLeafNode(FleetingNode node,
int locationId)
throws XPathException
notifySelectedLeafNode in interface WatchnotifySelectedLeafNode in class AbstractWatchnode - the node that was matched.locationId -
XPathException
public void endSelectedParentNode(int locationId)
throws XPathException
locationId - the location of the element
ValidationException - May be raised if the constraint implemented by this
Watch is violated @param locationId
XPathException - May be raised if a constraint implemented by this
Watch is violated
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||