Home | Trees | Indices | Help |
|
---|
|
object --+ | cscRoot --+ | ContentState_mixin --+ | SequenceState
Represent the state of validation against a sequence of particles.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
__sequence = None hash(x) |
|||
__particleState = None hash(x) |
|||
__parentParticleState = None hash(x) |
|||
__index = -1
|
|||
__failed = False True iff the content provided is in conflict with the
sequence requirements.
|
|||
__satisfied = False True iff the content provided is consistent with the
sequence requirements.
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Determine whether the provided value can be added to the instance without violating state validation. This method must not throw any non-catastrophic exceptions; general
failures should be transformed to a
|
Determine whether the deep state is complete without further elements. No-op for non-aggregate state. For aggregate state, all contained particles should be checked to see whether the overall model can be satisfied if no additional elements are provided. This method does not have a meaningful return value; violations of the content model should produce the corresponding exception (generally, MissingContentError).
|
Invoked by a sub-state to indicate that validation cannot proceed in the current state. Normally this is used when an intermediate content model must reset itself to permit alternative models to be evaluated.
|
|
__failed
Specifically, the model requires content that has not been provided. Set within accepts. This state is sticky.
|
__satisfied
Specifically, nothing has been presented with conflicts with the model. Set within notifyFailure.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 9 14:08:49 2011 | http://epydoc.sourceforge.net |