|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.validate.SelectorWatch
com.saxonica.validate.KeySelectorWatch
public class KeySelectorWatch
This class watches the selector for a key or unique constraint
Constructor Summary | |
---|---|
KeySelectorWatch(ConstraintChecker checker,
IdentityConstraint uniqueConstraint)
|
Method Summary | |
---|---|
void |
addKeyRef(RefSelectorWatch watch)
Add a RefSelectorWatch to support a keyRef that refers to this key or unique constraints |
protected void |
checkRow(Value[] currentRow,
boolean isTarget,
int locationId)
Method to check that a row (that is, the collection of fields corresponding to one selected node) is valid. |
Methods inherited from class com.saxonica.validate.SelectorWatch |
---|
activate, addFieldValue, close, deactivate, displayRow, getIdentityConstraint, getOriginDepth, getSelection, reportValidationError, reportValidationError, setNamespaceResolver, setOriginDepth, setPipelineConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeySelectorWatch(ConstraintChecker checker, IdentityConstraint uniqueConstraint)
Method Detail |
---|
public void addKeyRef(RefSelectorWatch watch)
watch
- the RefSelectorWatch which needs to be notified of all
values encountered for this keyprotected void checkRow(Value[] currentRow, boolean isTarget, int locationId) throws ValidationException
checkRow
in class SelectorWatch
currentRow
- 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 node
ValidationException
- May be raised if the value of the row (that is,
the combination of fields) violates the constraint
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |