org.apache.xerces.impl
Class XML11NSDocumentScannerImpl

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.XML11DocumentScannerImpl
                  extended by org.apache.xerces.impl.XML11NSDocumentScannerImpl
All Implemented Interfaces:
XMLEntityHandler, XMLComponent, XMLDocumentScanner, XMLDocumentSource

public class XML11NSDocumentScannerImpl
extends XML11DocumentScannerImpl

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: XML11NSDocumentScannerImpl.java 495747 2007-01-12 21:48:00Z mrglavas $
Author:
Elena Litani, IBM, Michael Glavassevich, IBM

Constructor Summary
XML11NSDocumentScannerImpl()
           
 
Method Summary
 void reset(XMLComponentManager componentManager)
          Resets the component.
 void setDTDValidator(XMLDTDValidatorFilter validator)
          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

XML11NSDocumentScannerImpl

public XML11NSDocumentScannerImpl()
Method Detail

setDTDValidator

public void setDTDValidator(XMLDTDValidatorFilter validator)
The scanner is responsible for removing DTD validator from the pipeline if it is not needed.

Parameters:
validator - the DTD validator from the pipeline

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