FileDocCategorySizeDatePackage
XML11DTDValidator.javaAPI DocApache Xerces 3.0.12887Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.dtd

XML11DTDValidator

public class XML11DTDValidator extends XMLDTDValidator
This allows the validator to correctlyhandle XML 1.1 documents.
xerces.internal
author
Neil Graham
version
$Id: XML11DTDValidator.java 446755 2006-09-15 21:56:27Z mrglavas $

Fields Summary
protected static final String
DTD_VALIDATOR_PROPERTY
Constructors Summary
public XML11DTDValidator()
Default constructor.


    //
    // Constructors
    //

       
      

        super();
    
Methods Summary
protected voidinit()

        if(fValidation || fDynamicValidation) {
            super.init();
            // now overwrite some entries in parent:

            try {
                fValID       = fDatatypeValidatorFactory.getBuiltInDV("XML11ID");
                fValIDRef    = fDatatypeValidatorFactory.getBuiltInDV("XML11IDREF");
                fValIDRefs   = fDatatypeValidatorFactory.getBuiltInDV("XML11IDREFS");
                fValNMTOKEN  = fDatatypeValidatorFactory.getBuiltInDV("XML11NMTOKEN");
                fValNMTOKENS = fDatatypeValidatorFactory.getBuiltInDV("XML11NMTOKENS");

            }
            catch (Exception e) {
                // should never happen
                e.printStackTrace(System.err);
            }
        }
    
public voidreset(org.apache.xerces.xni.parser.XMLComponentManager manager)

        XMLDTDValidator curr = null;
        if((curr = (XMLDTDValidator)manager.getProperty(DTD_VALIDATOR_PROPERTY)) != null &&
                curr != this) {
            fGrammarBucket = curr.getGrammarBucket();
        }
        super.reset(manager);