org.apache.xerces.impl
Class XMLNSDocumentScannerImpl
java.lang.Object
org.apache.xerces.impl.XMLScanner
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
org.apache.xerces.impl.XMLDocumentScannerImpl
org.apache.xerces.impl.XMLNSDocumentScannerImpl
- All Implemented Interfaces:
- XMLEntityHandler, XMLComponent, XMLDocumentScanner, XMLDocumentSource
public class XMLNSDocumentScannerImpl
- extends XMLDocumentScannerImpl
The scanner acts as the source for the document
information which is communicated to the document handler.
This class scans an XML document, checks if document has a DTD, and if
DTD is not found the scanner will remove the DTD Validator from the pipeline and perform
namespace binding.
Note: This scanner should only be used when the namespace processing is on!
This component requires the following features and properties from the
component manager that uses it:
- http://xml.org/sax/features/namespaces {true} -- if the value of this
feature is set to false this scanner must not be used.
- http://xml.org/sax/features/validation
- http://apache.org/xml/features/nonvalidating/load-external-dtd
- http://apache.org/xml/features/scanner/notify-char-refs
- http://apache.org/xml/features/scanner/notify-builtin-refs
- http://apache.org/xml/properties/internal/symbol-table
- http://apache.org/xml/properties/internal/error-reporter
- http://apache.org/xml/properties/internal/entity-manager
- http://apache.org/xml/properties/internal/dtd-scanner
- Version:
- $Id: XMLNSDocumentScannerImpl.java 495747 2007-01-12 21:48:00Z mrglavas $
- Author:
- Elena Litani, IBM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLNSDocumentScannerImpl
public XMLNSDocumentScannerImpl()
setDTDValidator
public void setDTDValidator(XMLDTDValidatorFilter dtdValidator)
- The scanner is responsible for removing DTD validator
from the pipeline if it is not needed.
- Parameters:
dtdValidator
- The DTDValidator
reset
public void reset(XMLComponentManager componentManager)
throws XMLConfigurationException
- Description copied from class:
XMLDocumentScannerImpl
- Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
- Specified by:
reset
in interface XMLComponent
- Overrides:
reset
in class XMLDocumentScannerImpl
- Parameters:
componentManager
- The component manager.
- Throws:
XMLConfigurationException