Qt 4.8
|
A helper class to build up validation state machines. More...
#include <qxsdstatemachinebuilder_p.h>
Public Types | |
enum | Mode { CheckingMode, ValidatingMode } |
typedef QExplicitlySharedDataPointer< XsdStateMachineBuilder > | Ptr |
Public Functions | |
XsdStateMachine< XsdTerm::Ptr >::StateId | addStartState (XsdStateMachine< XsdTerm::Ptr >::StateId state) |
XsdStateMachine< XsdTerm::Ptr >::StateId | buildParticle (const XsdParticle::Ptr &particle, XsdStateMachine< XsdTerm::Ptr >::StateId endState) |
XsdStateMachine< XsdTerm::Ptr >::StateId | buildTerm (const XsdTerm::Ptr &term, XsdStateMachine< XsdTerm::Ptr >::StateId endState) |
XsdStateMachine< XsdTerm::Ptr >::StateId | reset () |
XsdStateMachineBuilder (XsdStateMachine< XsdTerm::Ptr > *machine, const NamePool::Ptr &namePool, Mode mode=CheckingMode) | |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Static Public Functions | |
static QHash< XsdTerm::Ptr, XsdParticle::Ptr > | particleLookupMap (const XsdParticle::Ptr &particle) |
Properties | |
Mode | m_mode |
NamePool::Ptr | m_namePool |
XsdStateMachine< XsdTerm::Ptr > * | m_stateMachine |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
A helper class to build up validation state machines.
Definition at line 74 of file qxsdstatemachinebuilder_p.h.
typedef QExplicitlySharedDataPointer<XsdStateMachineBuilder> QPatternist::XsdStateMachineBuilder::Ptr |
Definition at line 77 of file qxsdstatemachinebuilder_p.h.
Enumerator | |
---|---|
CheckingMode | |
ValidatingMode |
Definition at line 79 of file qxsdstatemachinebuilder_p.h.
XsdStateMachineBuilder::XsdStateMachineBuilder | ( | XsdStateMachine< XsdTerm::Ptr > * | machine, |
const NamePool::Ptr & | namePool, | ||
Mode | mode = CheckingMode |
||
) |
Creates a new state machine builder.
machine | The state machine it should work on. |
namePool | The name pool used by all schema components. |
mode | The mode the machine shall be build for. |
Definition at line 90 of file qxsdstatemachinebuilder.cpp.
XsdStateMachine< XsdTerm::Ptr >::StateId XsdStateMachineBuilder::addStartState | ( | XsdStateMachine< XsdTerm::Ptr >::StateId | state | ) |
Prepends a start state to the given state
. That is needed to allow the conversion of the state machine from a FSA to a DFA.
Definition at line 104 of file qxsdstatemachinebuilder.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::createAndPushStateMachine(), QPatternist::XsdParticleChecker::isUPAConform(), and QPatternist::XsdParticleChecker::subsumes().
XsdStateMachine< XsdTerm::Ptr >::StateId XsdStateMachineBuilder::buildParticle | ( | const XsdParticle::Ptr & | particle, |
XsdStateMachine< XsdTerm::Ptr >::StateId | endState | ||
) |
Creates the state machine for the given particle
that should have the given endState
.
Definition at line 115 of file qxsdstatemachinebuilder.cpp.
Referenced by buildTerm(), QPatternist::XsdValidatingInstanceReader::createAndPushStateMachine(), QPatternist::XsdParticleChecker::isUPAConform(), and QPatternist::XsdParticleChecker::subsumes().
XsdStateMachine< XsdTerm::Ptr >::StateId XsdStateMachineBuilder::buildTerm | ( | const XsdTerm::Ptr & | term, |
XsdStateMachine< XsdTerm::Ptr >::StateId | endState | ||
) |
Creates the state machine for the given term
that should have the given endState
.
Definition at line 157 of file qxsdstatemachinebuilder.cpp.
Referenced by buildParticle().
|
static |
Returns a hash that maps each term that appears inside particle
, to the particle it belongs.
Definition at line 252 of file qxsdstatemachinebuilder.cpp.
Referenced by QPatternist::XsdParticleChecker::subsumes().
XsdStateMachine< XsdTerm::Ptr >::StateId XsdStateMachineBuilder::reset | ( | ) |
Resets the state machine.
Definition at line 95 of file qxsdstatemachinebuilder.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::createAndPushStateMachine(), QPatternist::XsdParticleChecker::isUPAConform(), and QPatternist::XsdParticleChecker::subsumes().
|
private |
Definition at line 133 of file qxsdstatemachinebuilder_p.h.
Referenced by buildTerm().
|
private |
Definition at line 132 of file qxsdstatemachinebuilder_p.h.
Referenced by buildTerm().
|
private |
Definition at line 131 of file qxsdstatemachinebuilder_p.h.
Referenced by addStartState(), buildParticle(), buildTerm(), and reset().