Qt 4.8
|
Represents a XSD particle object. More...
#include <qxsdparticle_p.h>
Public Types | |
typedef QList< XsdParticle::Ptr > | List |
typedef QExplicitlySharedDataPointer< XsdParticle > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Public Functions | |
unsigned int | maximumOccurs () const |
bool | maximumOccursUnbounded () const |
unsigned int | minimumOccurs () const |
void | setMaximumOccurs (unsigned int occurrence) |
void | setMaximumOccursUnbounded (bool unbounded) |
void | setMinimumOccurs (unsigned int occurrence) |
void | setTerm (const XsdTerm::Ptr &term) |
XsdTerm::Ptr | term () const |
XsdParticle () | |
Public Functions inherited from QPatternist::NamedSchemaComponent | |
virtual QString | displayName (const NamePool::Ptr &namePool) const |
virtual QXmlName | name (const NamePool::Ptr &namePool) const |
NamedSchemaComponent () | |
void | setName (const QXmlName &name) |
virtual | ~NamedSchemaComponent () |
Public Functions inherited from QPatternist::SchemaComponent | |
SchemaComponent () | |
virtual | ~SchemaComponent () |
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... | |
Properties | |
unsigned int | m_maximumOccurs |
bool | m_maximumOccursUnbounded |
unsigned int | m_minimumOccurs |
XsdTerm::Ptr | m_term |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Represents a XSD particle object.
This class represents the particle object of a XML schema as described here.
It contains information about the number of occurrence and a reference to either an element object, a group object or an any object.
Definition at line 79 of file qxsdparticle_p.h.
Definition at line 83 of file qxsdparticle_p.h.
Definition at line 82 of file qxsdparticle_p.h.
XsdParticle::XsdParticle | ( | ) |
Creates a new particle object.
Definition at line 48 of file qxsdparticle.cpp.
unsigned int XsdParticle::maximumOccurs | ( | ) | const |
Returns the maximum occurrence of the particle.
false
. Definition at line 70 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildParticle(), QPatternist::XsdSchemaDebugger::dumpParticle(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaParser::parseAll(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), and QPatternist::XsdSchemaResolver::resolveTermReference().
bool XsdParticle::maximumOccursUnbounded | ( | ) | const |
Returns whether the maximum occurrence of the particle is unbounded.
Definition at line 80 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildParticle(), QPatternist::XsdSchemaDebugger::dumpParticle(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaParser::parseAll(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), and QPatternist::XsdSchemaResolver::resolveTermReference().
unsigned int XsdParticle::minimumOccurs | ( | ) | const |
Returns the minimum occurrence of the particle.
Definition at line 60 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildParticle(), QPatternist::XsdSchemaDebugger::dumpParticle(), effectiveTotalRangeMinimum(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), QPatternist::XsdSchemaHelper::isParticleEmptiable(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdSchemaResolver::resolveTermReference().
void XsdParticle::setMaximumOccurs | ( | unsigned int | occurrence | ) |
Sets the maximum occurrence
of the particle.
Definition at line 65 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdValidatingInstanceReader::validate().
void XsdParticle::setMaximumOccursUnbounded | ( | bool | unbounded | ) |
Sets whether the maximum occurrence of the particle is unbounded.
Definition at line 75 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdValidatingInstanceReader::validate().
void XsdParticle::setMinimumOccurs | ( | unsigned int | occurrence | ) |
Sets the minimum occurrence
of the particle.
Definition at line 55 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseMinMaxConstraint(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and QPatternist::XsdValidatingInstanceReader::validate().
void XsdParticle::setTerm | ( | const XsdTerm::Ptr & | term | ) |
Sets the term
of the particle.
The term can be an element, a model group or an element wildcard.
Definition at line 85 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaResolver::checkRedefinedGroups(), QPatternist::XsdSchemaParser::parseAll(), QPatternist::XsdSchemaParser::parseChoice(), QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalAll(), QPatternist::XsdSchemaParser::parseLocalChoice(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseLocalSequence(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaParser::parseSequence(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveTermReference(), QPatternist::XsdSchemaResolver::resolveTermReferences(), and QPatternist::XsdValidatingInstanceReader::validate().
XsdTerm::Ptr XsdParticle::term | ( | ) | const |
Returns the term of the particle.
Definition at line 90 of file qxsdparticle.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildParticle(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), collectAllElements(), collectGroupRef(), QPatternist::XsdSchemaDebugger::dumpParticle(), effectiveTotalRangeMinimum(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), hasDuplicatedElementsInternal(), internalParticleLookupMap(), QPatternist::XsdSchemaHelper::isParticleEmptiable(), QPatternist::XsdParticleChecker::isUPAConform(), QPatternist::XsdParticleChecker::isUPAConformXsdAll(), QPatternist::XsdSchemaChecker::isValidParticleExtension(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveTermReference(), and setTerm().
|
private |
Definition at line 144 of file qxsdparticle_p.h.
Referenced by maximumOccurs(), and setMaximumOccurs().
|
private |
Definition at line 145 of file qxsdparticle_p.h.
Referenced by maximumOccursUnbounded(), and setMaximumOccursUnbounded().
|
private |
Definition at line 143 of file qxsdparticle_p.h.
Referenced by minimumOccurs(), and setMinimumOccurs().
|
private |
Definition at line 146 of file qxsdparticle_p.h.