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

Class NamespaceMap

source code

object --+
         |
        NamespaceMap

Maintains a bijective map between namespace uris and aliases.

Instance Methods [hide private]
  __init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  getAlias(self, namespace_uri)
  getNamespaceURI(self, alias)
  iterNamespaceURIs(self)
Return an iterator over the namespace URIs
  iterAliases(self)
Return an iterator over the aliases
  iteritems(self)
Iterate over the mapping
  addAlias(self, namespace_uri, desired_alias)
Add an alias from this namespace URI to the desired alias
  add(self, namespace_uri)
Add this namespace URI to the mapping, without caring what alias it ends up with
  isDefined(self, namespace_uri)
  __contains__(self, namespace_uri)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

getAlias(self, namespace_uri)

source code 

getNamespaceURI(self, alias)

source code 

iterNamespaceURIs(self)

source code 

Return an iterator over the namespace URIs

iterAliases(self)

source code 

Return an iterator over the aliases

iteritems(self)

source code 

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

addAlias(self, namespace_uri, desired_alias)

source code 

Add an alias from this namespace URI to the desired alias

add(self, namespace_uri)

source code 

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

isDefined(self, namespace_uri)

source code 

__contains__(self, namespace_uri)
(In operator)

source code