Class XMLNSDTDValidator
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dtd.XMLDTDValidator
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dtd.XMLNSDTDValidator
-
- All Implemented Interfaces:
XMLDTDValidatorFilter
,RevalidationHandler
,XMLComponent
,XMLDocumentFilter
,XMLDocumentSource
,XMLDocumentHandler
public class XMLNSDTDValidator extends XMLDTDValidator
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:
- http://xml.org/sax/features/namespaces
- http://xml.org/sax/features/validation
- http://apache.org/xml/features/validation/dynamic
- http://apache.org/xml/properties/internal/symbol-table
- http://apache.org/xml/properties/internal/error-reporter
- http://apache.org/xml/properties/internal/grammar-pool
- http://apache.org/xml/properties/internal/datatype-validator-factory
- Version:
- $Id$
- Author:
- Elena Litani, IBM
-
-
Field Summary
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dtd.XMLDTDValidator
BALANCE_SYNTAX_TREES, DATATYPE_VALIDATOR_FACTORY, DYNAMIC_VALIDATION, ERROR_REPORTER, fBalanceSyntaxTrees, fDatatypeValidatorFactory, fDocLocation, fDocumentHandler, fDocumentSource, fDTDGrammar, fDTDValidation, fDynamicValidation, fErrorReporter, fGrammarBucket, fGrammarPool, fNamespaceContext, fNamespaces, fSeenDoctypeDecl, fSymbolTable, fValENTITIES, fValENTITY, fValID, fValidation, fValidationManager, fValidationState, fValIDRef, fValIDRefs, fValNMTOKEN, fValNMTOKENS, fValNOTATION, fWarnDuplicateAttdef, GRAMMAR_POOL, NAMESPACES, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ATTDEF
-
-
Constructor Summary
Constructors Constructor Description XMLNSDTDValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
endNamespaceScope(QName element, Augmentations augs, boolean isEmpty)
Handles end element.protected void
startNamespaceScope(QName element, XMLAttributes attributes, Augmentations augs)
Bind namespaces-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dtd.XMLDTDValidator
addDTDDefaultAttrsAndValidate, characterData, characters, comment, doctypeDecl, emptyElement, endCDATA, endDocument, endElement, endGeneralEntity, getDocumentHandler, getDocumentSource, getExternalEntityRefInAttrValue, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, handleEndElement, handleStartElement, hasGrammar, ignorableWhitespace, init, invalidStandaloneAttDef, isSpace, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startDocument, startElement, startGeneralEntity, textDecl, validate, validateDTDattribute, xmlDecl
-
-
-
-
Method Detail
-
startNamespaceScope
protected final void startNamespaceScope(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
Bind namespaces- Overrides:
startNamespaceScope
in classXMLDTDValidator
- Throws:
XNIException
-
endNamespaceScope
protected void endNamespaceScope(QName element, Augmentations augs, boolean isEmpty) throws XNIException
Handles end element.- Overrides:
endNamespaceScope
in classXMLDTDValidator
- Throws:
XNIException
-
-