public class KeySelectorWatch extends SelectorWatch
| Constructor and Description | 
|---|
| KeySelectorWatch(ConstraintChecker checker,
                IdentityConstraint uniqueConstraint) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addKeyRef(RefSelectorWatch watch)Add a RefSelectorWatch to support a keyRef that refers to this key
 or unique constraints | 
| protected void | checkRow(AtomicSequence[] currentRow,
        boolean isTarget,
        Location locationId)Method to check that a row (that is, the collection of fields corresponding
 to one selected node) is valid. | 
addFieldValue, close, endSelectedParentNode, getIdentityConstraint, reportValidationError, startSelectedParentNodegetAnchorNode, getSelection, matchesNode, matchesNodesOfKind, open, processItem, setAnchorNode, setSelectiongetNamespaceResolver, getPipelineConfiguration, getReceiver, setNamespaceResolver, setPipelineConfigurationpublic KeySelectorWatch(ConstraintChecker checker, IdentityConstraint uniqueConstraint)
public void addKeyRef(RefSelectorWatch watch)
watch - the RefSelectorWatch which needs to be notified of all
              values encountered for this keyprotected void checkRow(AtomicSequence[] currentRow, boolean isTarget, Location locationId) throws XPathException
checkRow in class SelectorWatchcurrentRow - the values of the set of fieldsisTarget - set to true if this is a value of the key referred to
                   by a key reference, rather than a value for this constraint's own selected
                   fields.locationId - identifies the location of the selected nodeValidationException - May be raised if the value of the row (that is,
          the combination of fields) violates the constraintXPathExceptionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.