Package openid :: Module message :: Class NamespaceMap
[frames | no frames]

Type NamespaceMap

object --+
         |
        NamespaceMap


Maintains a bijective map between namespace uris and aliases.
Method Summary
  __init__(self)
  __contains__(self, namespace_uri)
  add(self, namespace_uri)
Add this namespace URI to the mapping, without caring what alias it ends up with
  addAlias(self, namespace_uri, desired_alias)
Add an alias from this namespace URI to the desired alias
  getAlias(self, namespace_uri)
  getNamespaceURI(self, alias)
  isDefined(self, namespace_uri)
  iterAliases(self)
Return an iterator over the aliases
  iteritems(self)
Iterate over the mapping
  iterNamespaceURIs(self)
Return an iterator over the namespace URIs
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

add(self, namespace_uri)

Add this namespace URI to the mapping, without caring what alias it ends up with

addAlias(self, namespace_uri, desired_alias)

Add an alias from this namespace URI to the desired alias

iterAliases(self)

Return an iterator over the aliases

iteritems(self)

Iterate over the mapping
Returns:
iterator of (namespace_uri, alias)

iterNamespaceURIs(self)

Return an iterator over the namespace URIs

Generated by Epydoc 2.1 on Fri Dec 14 16:10:52 2007 http://epydoc.sf.net