| Home | Trees | Index | Help |
|
|---|
| Package bridge :: Package parser :: Module bridge_default :: Class DispatchHandler |
|
ContentHandler--+ |XMLGenerator--+ |IncrementalHandler--+ | DispatchHandler
| Method Summary | |
|---|---|
__init__(self,
out,
encoding)
| |
disable_dispatching(self)
| |
enable_dispatching(self)
| |
Signals the end of an element in namespace mode. | |
Registers a dispatcher at a given level within the XML tree of elements being built. | |
register_by_path(self,
path,
dispatcher)
| |
Registers a dispatcher on a given element met during the parsing. | |
Registers a dispatcher at a given level within the XML tree of elements being built as well as for a specific element. | |
Unregisters a dispatcher at a given level | |
unregister_by_path(self,
path)
| |
Unregisters a dispatcher for a specific element. | |
Unregisters a dispatcher at a given level for a specific element. | |
| Inherited from IncrementalHandler | |
| |
Receive notification of character data. | |
| |
Returns the root bridge.Document instance of the parsed document. | |
| |
| |
Receive notification of a processing instruction. | |
| |
Receive notification of the beginning of a document. | |
| |
Signals the start of an element in namespace mode. | |
| Inherited from XMLGenerator | |
Signals the end of an element in non-namespace mode. | |
End the scope of a prefix-URI mapping. | |
| |
Signals the start of an element in non-namespace mode. | |
Begin the scope of a prefix-URI Namespace mapping. | |
| Inherited from ContentHandler | |
Receive notification of the end of a document. | |
Called by the parser to give the application a locator for locating the origin of document events. | |
Receive notification of a skipped entity. | |
| Class Variable Summary | |
|---|---|
| Inherited from XMLGenerator | |
str |
GENERATED_PREFIX = 'xml.sax.saxutils.prefix%s'
|
| Method Details |
|---|
endElementNS(self, name, qname)Signals the end of an element in namespace mode. The name parameter contains the name of the element type, just as with the startElementNS event.
|
register_at_level(self, level, dispatcher)Registers a dispatcher at a given level within the XML tree of elements being built. The ``level``, an integer, is zero-based. So the root element of the XML tree is 0 and its direct children are at level 1. The ``dispatcher`` is a callable object only taking one parameter, a bridge.Element instance. |
register_on_element(self, local_name, dispatcher, namespace=None)Registers a dispatcher on a given element met during the parsing. The ``local_name`` is the local name of the element. This element can be namespaced if you provide the ``namespace`` parameter. The ``dispatcher`` is a callable object only taking one parameter, a bridge.Element instance. |
register_on_element_per_level(self, local_name, level, dispatcher, namespace=None)Registers a dispatcher at a given level within the XML tree of elements being built as well as for a specific element. The ``level``, an integer, is zero-based. So the root element of the XML tree is 0 and its direct children are at level 1. The ``local_name`` is the local name of the element. This element can be namespaced if you provide the ``namespace`` parameter. The ``dispatcher`` is a callable object only taking one parameter, a bridge.Element instance. |
unregister_at_level(self, level)Unregisters a dispatcher at a given level |
unregister_on_element(self, local_name, namespace=None)Unregisters a dispatcher for a specific element. |
unregister_on_element_per_level(self, local_name, level, namespace=None)Unregisters a dispatcher at a given level for a specific element. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue May 22 18:09:00 2007 | http://epydoc.sf.net |