org.apache.xerces.impl.dtd

Class XML11NSDTDValidator

Implemented Interfaces:
RevalidationHandler, org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDocumentFilter, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.parser.XMLDocumentSource, XMLDTDValidatorFilter

public class XML11NSDTDValidator
extends XML11DTDValidator

The DTD validator. The validator implements a document filter: receiving document events from the scanner; validating the content and structure; augmenting the InfoSet, if applicable; and notifying the parser of the information resulting from the validation process.

Formerly, this component also handled DTD events and grammar construction. To facilitate the development of a meaningful DTD grammar caching/preparsing framework, this functionality has been moved into the XMLDTDLoader class. Therefore, this class no longer implements the DTDFilter or DTDContentModelFilter interfaces.

This component requires the following features and properties from the component manager that uses it:

Version:
$Id: XML11NSDTDValidator.java,v 1.4 2004/10/04 21:57:30 mrglavas Exp $
Authors:
Elena Litani, IBM
Michael Glavassevich, IBM

Field Summary

Fields inherited from class org.apache.xerces.impl.dtd.XML11DTDValidator

DTD_VALIDATOR_PROPERTY

Fields inherited from class org.apache.xerces.impl.dtd.XMLDTDValidator

DATATYPE_VALIDATOR_FACTORY, DYNAMIC_VALIDATION, ERROR_REPORTER, GRAMMAR_POOL, NAMESPACES, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF, fDTDGrammar, fDTDValidation, fDatatypeValidatorFactory, fDocLocation, fDocumentHandler, fDocumentSource, fDynamicValidation, fErrorReporter, fGrammarBucket, fGrammarPool, fNamespaceContext, fNamespaces, fSeenDoctypeDecl, fSymbolTable, fValENTITIES, fValENTITY, fValID, fValIDRef, fValIDRefs, fValNMTOKEN, fValNMTOKENS, fValNOTATION, fValidation, fValidationManager, fValidationState, fWarnDuplicateAttdef

Method Summary

protected void
endNamespaceScope(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs, boolean isEmpty)
Handles end element.
protected void
startNamespaceScope(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs)
Bind namespaces

Methods inherited from class org.apache.xerces.impl.dtd.XML11DTDValidator

init, reset

Methods inherited from class org.apache.xerces.impl.dtd.XMLDTDValidator

addDTDDefaultAttrsAndValidate, characterData, characters, comment, doctypeDecl, emptyElement, endCDATA, endDocument, endElement, endGeneralEntity, endNamespaceScope, getDocumentHandler, getDocumentSource, getExternalEntityRefInAttrValue, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, handleEndElement, handleStartElement, hasGrammar, ignorableWhitespace, init, invalidStandaloneAttDef, isSpace, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startDocument, startElement, startGeneralEntity, startNamespaceScope, textDecl, validate, validateDTDattribute, xmlDecl

Method Details

endNamespaceScope

protected void endNamespaceScope(org.apache.xerces.xni.QName element,
                                 org.apache.xerces.xni.Augmentations augs,
                                 boolean isEmpty)
            throws org.apache.xerces.xni.XNIException
Handles end element.
Overrides:
endNamespaceScope in interface XMLDTDValidator

startNamespaceScope

protected final void startNamespaceScope(org.apache.xerces.xni.QName element,
                                         org.apache.xerces.xni.XMLAttributes attributes,
                                         org.apache.xerces.xni.Augmentations augs)
            throws org.apache.xerces.xni.XNIException
Bind namespaces
Overrides:
startNamespaceScope in interface XMLDTDValidator

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.