public class RefSelectorWatch extends SelectorWatch
Constructor and Description |
---|
RefSelectorWatch(ConstraintChecker checker,
KeyRef constraint)
Create a watch for values that might satisfy a keyref constraint
|
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.
|
void |
notifyActualKey(AtomicSequence[] keyValue,
Location locationId)
Notify a value selected by this KeyRef
|
addFieldValue, checkRow, endSelectedParentNode, getIdentityConstraint, reportValidationError, startSelectedParentNode
getAnchorNode, getSelection, matchesNode, matchesNodesOfKind, open, processItem, setAnchorNode, setSelection
getNamespaceResolver, getPipelineConfiguration, getReceiver, setNamespaceResolver, setPipelineConfiguration
public RefSelectorWatch(ConstraintChecker checker, KeyRef constraint)
checker
- the ConstraintChecker that initiated this watchconstraint
- the constraint being checkedpublic void notifyActualKey(AtomicSequence[] keyValue, Location locationId) throws XPathException
keyValue
- an array holding the components (fields) making up the keyref valuelocationId
- the location of the node containing the keyref valuesValidationException
- if the value is invalid for example a duplicateXPathException
public void close() throws XPathException
close
in interface Watch
close
in class SelectorWatch
XPathException
- May be raised if a dynamic error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.