FileDocCategorySizeDatePackage
XML11DTDValidator.javaAPI DocJava SE 5 API4729Fri Aug 26 14:55:46 BST 2005com.sun.org.apache.xerces.internal.impl.dtd

XML11DTDValidator

public class XML11DTDValidator extends XMLDTDValidator
This allows the validator to correctlyhandle XML 1.1 documents.
author
Neil Graham
version
$Id: XML11DTDValidator.java,v 1.5 2004/02/04 18:40:55 mrglavas Exp $

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(com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager manager)

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