|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.validate.AbstractWatch com.saxonica.validate.FieldWatch
public class FieldWatch
A FieldWatch is a class that is looking for nodes that match a field selector within a uniqueness or key constraint.
Constructor Summary | |
---|---|
FieldWatch(SelectorWatch parentWatch,
Pattern selection,
Value[] currentRow,
int column)
Create a new FieldWatch |
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.validate.AbstractWatch |
---|
close, getAnchorNode, getNamespaceResolver, getPipelineConfiguration, getSelection, open, setAnchorNode, setNamespaceResolver, setPipelineConfiguration, setSelection |
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 |
---|
close, getAnchorNode, getNamespaceResolver, getPipelineConfiguration, getSelection, open, setAnchorNode, setNamespaceResolver, setPipelineConfiguration, setSelection |
Constructor Detail |
---|
public FieldWatch(SelectorWatch parentWatch, Pattern selection, Value[] currentRow, int column)
parentWatch
- The SelectorWatch to which field values should be
notifiedselection
- The selection (that is, the restricted XPath expression)
used in this field of the constraintcurrentRow
- represents the selected node whose fields are being
evaluatedcolumn
- sequence number for this field within the constraint being
evaluatedMethod Detail |
---|
public Receiver startSelectedParentNode(FleetingNode node, int locationId) throws XPathException
startSelectedParentNode
in interface Watch
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 endSelectedParentNode(int locationId) throws ValidationException
endSelectedParentNode
in interface Watch
locationId
- the location of the element
ValidationException
- May be raised if the constraint implemented by this
Watch is violated @param locationIdpublic void notifySelectedLeafNode(FleetingNode node, int locationId) throws XPathException
notifySelectedLeafNode
in interface Watch
notifySelectedLeafNode
in class AbstractWatch
node
- the node that was matched.locationId
-
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |