Package suds :: Package xsd :: Module sxbase :: Class Iter
[hide private]
[frames] | no frames]

Class Iter

source code

The content iterator - used to iterate the Content children. The iterator provides a view of the children that is free of container elements such as <sequence/> and <choice/>.

Nested Classes [hide private]
  Frame
A content iterator frame.
Instance Methods [hide private]
 
__init__(self, sx) source code
 
push(self, sx)
Create a frame and push the specified object.
source code
Frame
pop(self)
Pop the top frame.
source code
Frame
top(self)
Get the top frame.
source code
(SchemaObject, [SchemaObject,..])
next(self)
Get the next item.
source code
 
__iter__(self) source code
Instance Variables [hide private]
list stack
A stack used to control nesting.
Method Details [hide private]

__init__(self, sx)
(Constructor)

source code 
Parameters:

push(self, sx)

source code 

Create a frame and push the specified object.

Parameters:

pop(self)

source code 

Pop the top frame.

Returns: Frame
The popped frame.
Raises:
  • StopIteration - when stack is empty.

top(self)

source code 

Get the top frame.

Returns: Frame
The top frame.
Raises:
  • StopIteration - when stack is empty.

next(self)

source code 

Get the next item.

Returns: (SchemaObject, [SchemaObject,..])
A tuple: the next (child, ancestry).
Raises:
  • StopIteration - A the end.