| Home | Trees | Index | Help |
|
|---|
| Package bridge :: Package parser :: Module bridge_default :: Class DispatchParser |
|
object --+
|
DispatchParser
| Method Summary | |
|---|---|
__init__(self,
out,
encoding)
| |
disable_dispatching(self)
| |
enable_dispatching(self)
| |
feed(self,
chunk)
| |
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. | |
reset(self)
| |
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 object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
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 |