Class AbstractVerifier

java.lang.Object
com.sun.msv.verifier.AbstractVerifier
All Implemented Interfaces:
IDContextProvider2, org.relaxng.datatype.ValidationContext, ContentHandler, DTDHandler
Direct Known Subclasses:
Verifier

public abstract class AbstractVerifier extends Object implements ContentHandler, DTDHandler, IDContextProvider2
Base implementation for various Verifier implementations. This implementation provides common service like:
  1. collecting ID/IDREFs.
  2. storing Locator.

    By setting performIDcheck variable, the ID/IDREF checking can be either turned on or turned off.

Author:
Kohsuke KAWAGUCHI
  • Field Details

    • locator

      protected Locator locator
      Document Locator that is given by XML reader. Sometimes it doesn't set the locator, so start with a dummy instance.
    • dummyLocator

      protected static final Locator dummyLocator
    • performIDcheck

      protected boolean performIDcheck
      set this flag to true to perform ID/IDREF validation. this value cannot be modified in the middle of the validation.
    • ids

      protected final Map<Object,Object> ids
      this map remembers every ID token encountered in this document
    • idrefs

      protected final Set<Object> idrefs
      this map remembers every IDREF token encountered in this document
    • namespaceSupport

      protected final NamespaceSupport namespaceSupport
      namespace prefix to namespace URI resolver. this object memorizes mapping information.
  • Constructor Details

    • AbstractVerifier

      public AbstractVerifier()
  • Method Details