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
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getAlias(self, namespace_uri) source code
 
getNamespaceURI(self, alias) source code
 
iterNamespaceURIs(self)
Return an iterator over the namespace URIs
source code
 
iterAliases(self)
Return an iterator over the aliases
source code
 
iteritems(self)
Iterate over the mapping
source code
 
addAlias(self, namespace_uri, desired_alias, implicit=False)
Add an alias from this namespace URI to the desired alias
source code
 
add(self, namespace_uri)
Add this namespace URI to the mapping, without caring what alias it ends up with
source code
 
isDefined(self, namespace_uri) source code
 
__contains__(self, namespace_uri) source code
 
isImplicit(self, namespace_uri) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

iteritems(self)

source code 

Iterate over the mapping

Returns:
iterator of (namespace_uri, alias)