com.saxonica.validate
Class ConstraintChecker
java.lang.Object
net.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
com.saxonica.extra.WatchManager
com.saxonica.validate.ConstraintChecker
- All Implemented Interfaces:
- Result, Receiver, NamespaceResolver
public class ConstraintChecker
- extends WatchManager
This class handles the checking of Schema-defined unique, key, and keyref
constraints. It keeps track of the nesting of elements, and notifies a Watcher
class when an element is found that matches a particular Selector.
Methods inherited from class com.saxonica.extra.WatchManager |
addWatch, attribute, characters, comment, endElement, getURIForPrefix, iteratePrefixes, namespace, processingInstruction, startContent, startElement |
Methods inherited from class net.sf.saxon.event.ProxyReceiver |
append, close, endDocument, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, open, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument |
ConstraintChecker
public ConstraintChecker()
setElementDeclaration
public void setElementDeclaration(ElementDecl decl)
throws XPathException
- setElementDeclaration is called immediately before the call on startElement.
It identifies the element declaration that defines the just-started
element, which in turn is used to create a Watch for constraints originating
at this element.
- Throws:
XPathException
setInvalid
public void setInvalid(boolean invalid)
isInvalid
public boolean isInvalid()
Copyright (C) Michael H. Kay. All rights reserved.