Package lxml :: Module etree :: Class _ResolverRegistry
[hide private]
[frames] | no frames]

Class _ResolverRegistry

object --+
         |
        _ResolverRegistry

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(...)
repr(x)
 
add(self, resolver)
Register a resolver.
 
copy(self)
 
remove(self, resolver)
 
resolve(self, system_url, public_id, context)

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

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

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(...)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)

add(self, resolver)

 

Register a resolver.

For each requested entity, the 'resolve' method of the resolver will be called and the result will be passed to the parser. If this method returns None, the request will be delegated to other resolvers or the default resolver. The resolvers will be tested in an arbitrary order until the first match is found.