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

Class _MGAllState

source code

object --+
         |
        _MGAllState

The state of a suspended interpretation of a ModelGroupAll transition. This state comprises a set of alternatives, and optionally a DFAStack corresponding to the current position within one of the alternatives.

Instance Methods [hide private]
 
__init__(self, model_group)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
step(self, dfa_stack, ctd_instance, value, element_use)
Execute a step within the model group.
source code
 
isFinal(self)
Return True iff no required alternatives remain.
source code

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

Class Variables [hide private]
  __modelGroup = None
  __alternatives = None
  __currentStack = None
  __isFinal = None
  _MGAllState__alternatives = None
  _MGAllState__currentStack = None
  _MGAllState__isFinal = None
  _MGAllState__modelGroup = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, model_group)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

step(self, dfa_stack, ctd_instance, value, element_use)

source code 

Execute a step within the model group.

If an automaton stack is currently being executed, the step defers to that automaton. If a step is succesfully taken, the invocation returns; otherwise, the automaton stack is discarded.

If no automaton stack is active, a step is attempted on each automaton remaining in the alternatives. If the step is successful, that automaton is recorded as being the current one for execution, and the invocation returns.

If no automaton can be found within which progress can be made, the step fails.

Parameters:
  • dfa_stack (DFAStack) - The current state of the parse. Upon return, this may have been augmented with suspended content models.
  • value (xml.dom.Node or basis._TypeBinding_mixin or other value) - A value upon which transition should occur.
Returns:
True iff a transition was found that consumed the value.