Package openid :: Module message :: Class NamespaceMap
[hide private]
[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 help(type(x)) 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__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

iteritems(self)

source code 

Iterate over the mapping

Returns:
iterator of (namespace_uri, alias)