Qt 4.8
|
Represents a XSD model group object. More...
#include <qxsdmodelgroup_p.h>
Public Types | |
typedef QList< XsdModelGroup::Ptr > | List |
enum | ModelCompositor { SequenceCompositor, ChoiceCompositor, AllCompositor } |
typedef QExplicitlySharedDataPointer< XsdModelGroup > | Ptr |
Public Types inherited from QPatternist::XsdTerm | |
typedef QExplicitlySharedDataPointer< XsdTerm > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Properties | |
ModelCompositor | m_compositor |
XsdParticle::List | m_particles |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::XsdTerm | |
XsdTerm () | |
Represents a XSD model group object.
This class represents the model group object of a XML schema as described here.
It contains information from either a sequence object, a choice object or an all object.
Definition at line 79 of file qxsdmodelgroup_p.h.
Definition at line 83 of file qxsdmodelgroup_p.h.
Definition at line 82 of file qxsdmodelgroup_p.h.
Describes the compositor of the model group.
Enumerator | |
---|---|
SequenceCompositor | The model group is a sequence. |
ChoiceCompositor | The model group is a choice. |
AllCompositor | The model group contains elements only. |
Definition at line 88 of file qxsdmodelgroup_p.h.
XsdModelGroup::XsdModelGroup | ( | ) |
Creates a new model group object.
Definition at line 48 of file qxsdmodelgroup.cpp.
XsdModelGroup::ModelCompositor XsdModelGroup::compositor | ( | ) | const |
Returns the compositor of the model group.
Definition at line 63 of file qxsdmodelgroup.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildTerm(), effectiveTotalRangeMinimum(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaParser::resolveComplexContentType(), QPatternist::XsdSchemaResolver::resolveTermReference(), and setCompositor().
|
virtual |
Returns always true
, used to avoid dynamic casts.
Reimplemented from QPatternist::XsdTerm.
Definition at line 53 of file qxsdmodelgroup.cpp.
XsdParticle::List XsdModelGroup::particles | ( | ) | const |
Returns the list of particles of the model group.
Definition at line 73 of file qxsdmodelgroup.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildTerm(), collectAllElements(), collectGroupRef(), effectiveTotalRangeMinimum(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), hasDuplicatedElementsInternal(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), QPatternist::XsdSchemaParser::resolveComplexContentType(), QPatternist::XsdSchemaResolver::resolveTermReference(), and setParticles().
void XsdModelGroup::setCompositor | ( | ModelCompositor | compositor | ) |
Sets the compositor
of the model group.
Definition at line 58 of file qxsdmodelgroup.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseAll(), QPatternist::XsdSchemaParser::parseChoice(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseLocalChoice(), QPatternist::XsdSchemaParser::parseLocalSequence(), QPatternist::XsdSchemaParser::parseSequence(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdValidatingInstanceReader::validate().
void XsdModelGroup::setParticles | ( | const XsdParticle::List & | particles | ) |
Sets the list of particles
of the model group.
Definition at line 68 of file qxsdmodelgroup.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseAll(), QPatternist::XsdSchemaParser::parseChoice(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseLocalChoice(), QPatternist::XsdSchemaParser::parseLocalSequence(), QPatternist::XsdSchemaParser::parseSequence(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdValidatingInstanceReader::validate().
|
private |
Definition at line 130 of file qxsdmodelgroup_p.h.
Referenced by compositor(), and setCompositor().
|
private |
Definition at line 131 of file qxsdmodelgroup_p.h.
Referenced by particles(), and setParticles().