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

Class DispatchHandler

ContentHandler --+        
                 |        
      XMLGenerator --+    
                     |    
    IncrementalHandler --+
                         |
                        DispatchHandler


Method Summary
  __init__(self, out, encoding)
  disable_dispatching(self)
  enable_dispatching(self)
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  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.
  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 IncrementalHandler
  _split_qname(self, qname)
  characters(self, content)
Receive notification of character data.
  comment(self, data)
  doc(self)
Returns the root bridge.Document instance of the parsed document.
  endCDATA(self)
  endDTD(self)
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  startCDATA(self)
  startDocument(self)
Receive notification of the beginning of a document.
  startDTD(self, name, public_id, system_id)
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
    Inherited from XMLGenerator
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, content)
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
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.
Overrides:
bridge.parser.bridge_default.IncrementalHandler.endElementNS (inherited documentation)

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