org.apache.xerces.impl
Class XMLNSDocumentScannerImpl

java.lang.Object
  extended by org.apache.xerces.impl.XMLScanner
      extended by org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
          extended by org.apache.xerces.impl.XMLDocumentScannerImpl
              extended by 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:

Version:
$Id: XMLNSDocumentScannerImpl.java 495747 2007-01-12 21:48:00Z mrglavas $
Author:
Elena Litani, IBM

Constructor Summary
XMLNSDocumentScannerImpl()
           
 
Method Summary
 void reset(XMLComponentManager componentManager)
          Resets the component.
 void setDTDValidator(XMLDTDValidatorFilter dtdValidator)
          The scanner is responsible for removing DTD validator from the pipeline if it is not needed.
 
Methods inherited from class org.apache.xerces.impl.XMLDocumentScannerImpl
endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, setFeature, setInputSource, setProperty, startEntity
 
Methods inherited from class org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
getDispatcherName, getDocumentHandler, scanDocument, setDocumentHandler
 
Methods inherited from class org.apache.xerces.impl.XMLScanner
getFeature, scanPseudoAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNSDocumentScannerImpl

public XMLNSDocumentScannerImpl()
Method Detail

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