Package suds :: Module resolver :: Class TreeResolver
[hide private]
[frames] | no frames]

Class TreeResolver

source code

Resolver --+
           |
          TreeResolver
Known Subclasses:

The tree resolver is a stateful tree resolver used to resolve each node in a tree. As such, it mirrors the tree structure to ensure that nodes are resolved in context.

Instance Methods [hide private]
 
__init__(self, schema) source code
 
reset(self)
Reset the resolver's state.
source code
Frame
push(self, x)
Push an object onto the stack.
source code
Frame
top(self)
Get the frame at the top of the stack.
source code
Frame
pop(self)
Pop the frame at the top of the stack.
source code
int
depth(self)
Get the current stack depth.
source code
 
getchild(self, name, parent)
get a child by name
source code

Inherited from Resolver: find

Instance Variables [hide private]
list stack
The context stack.

Inherited from Resolver: schema

Method Details [hide private]

__init__(self, schema)
(Constructor)

source code 
Parameters:
Overrides: Resolver.__init__

push(self, x)

source code 

Push an object onto the stack.

Parameters:
  • x (Frame) - An object to push.
Returns: Frame
The pushed frame.

top(self)

source code 

Get the frame at the top of the stack.

Returns: Frame
The top frame, else None.

pop(self)

source code 

Pop the frame at the top of the stack.

Returns: Frame
The popped frame, else None.

depth(self)

source code 

Get the current stack depth.

Returns: int
The current stack depth.