org.apache.xerces.impl

Class XML11NSDocumentScannerImpl.NS11ContentDispatcher

Enclosing Class:
XML11NSDocumentScannerImpl
Implemented Interfaces:
XMLDocumentFragmentScannerImpl.Dispatcher

protected final class XML11NSDocumentScannerImpl.NS11ContentDispatcher
extends XMLDocumentScannerImpl.ContentDispatcher

Dispatcher to handle content scanning.

Method Summary

protected boolean
scanRootElementHook()
Scan for root element hook.

Methods inherited from class org.apache.xerces.impl.XMLDocumentScannerImpl.ContentDispatcher

elementDepthIsZeroHook, endOfFileHook, resolveExternalSubsetAndRead, scanForDoctypeHook, scanRootElementHook

Methods inherited from class org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.FragmentContentDispatcher

dispatch, elementDepthIsZeroHook, endOfFileHook, scanForDoctypeHook, scanRootElementHook

Method Details

scanRootElementHook

protected boolean scanRootElementHook()
            throws IOException,
                   org.apache.xerces.xni.XNIException
Scan for root element hook. This method is a hook for subclasses to add code that handles scanning for the root element. This method will also attempt to remove DTD validator from the pipeline, if there is no DTD grammar. If DTD validator is no longer in the pipeline bind namespaces in the scanner.
Overrides:
scanRootElementHook in interface XMLDocumentScannerImpl.ContentDispatcher
Returns:
True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal.

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