FileDocCategorySizeDatePackage
XML11DTDValidator.javaAPI DocJava SE 6 API4672Tue Jun 10 00:22:40 BST 2008com.sun.org.apache.xerces.internal.impl.dtd

XML11DTDValidator

public class XML11DTDValidator extends XMLDTDValidator
This allows the validator to correctlyhandle XML 1.1 documents.
xerces.internal
author
Neil Graham

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);