Package bridge :: Package parser :: Module bridge_default :: Class DispatchParser
[show private | hide private]
[frames | no frames]

Type DispatchParser

object --+
         |
        DispatchParser


Method Summary
  __init__(self, out, encoding)
  disable_dispatching(self)
  enable_dispatching(self)
  feed(self, chunk)
  register_at_level(self, level, dispatcher)
Registers a dispatcher at a given level within the XML tree of elements being built.
  register_by_path(self, path, dispatcher)
  register_on_element(self, local_name, dispatcher, namespace)
Registers a dispatcher on a given element met during the parsing.
  register_on_element_per_level(self, local_name, level, dispatcher, namespace)
Registers a dispatcher at a given level within the XML tree of elements being built as well as for a specific element.
  reset(self)
  unregister_at_level(self, level)
Unregisters a dispatcher at a given level
  unregister_by_path(self, path)
  unregister_on_element(self, local_name, namespace)
Unregisters a dispatcher for a specific element.
  unregister_on_element_per_level(self, local_name, level, namespace)
Unregisters a dispatcher at a given level for a specific element.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
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.

Generated by Epydoc 2.1 on Tue May 22 18:09:00 2007 http://epydoc.sf.net