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,
int locationId)
Notify a value selected by this KeyRef
|
addFieldValue, checkRow, endSelectedParentNode, getIdentityConstraint, reportValidationError, 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, int locationId) throws ValidationException
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 duplicatepublic void close() throws ValidationException
close
in interface Watch
close
in class SelectorWatch
ValidationException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.