Package pyxb :: Package binding :: Module content :: Class DFAStack
[hide private]
[frames] | no frames]

Class DFAStack

source code

object --+
         |
        DFAStack

A stack of states and content models representing the current status of an interpretation of a content model, including invocations of nested content models reached through ModelGroupAll instances.

Instance Methods [hide private]
 
__init__(self, content_model)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
pushModelState(self, model_state)
Add the given model state as the new top (actively executing) model .
source code
 
isTerminal(self)
Return True iff the stack is in a state where the top-level model execution has reached a final state.
source code
 
popModelState(self)
Remove and return the model state currently being executed.
source code
 
topModelState(self)
Return a reference to the model state currently being executed.
source code
 
step(self, ctd_instance, value, element_use)
Take a step using the value and the current model state.
source code

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

Class Variables [hide private]
  __stack = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, content_model)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

topModelState(self)

source code 

Return a reference to the model state currently being executed.

The state is not removed from the stack.

step(self, ctd_instance, value, element_use)

source code 

Take a step using the value and the current model state.

Execution of the step may add a new model state to the stack.

Returns:
True iff the value was consumed by a transition.