![]() |
Qt 4.8
|
Contains helper methods that are used by XsdSchemaParser, XsdSchemaResolver and XsdSchemaChecker. More...
#include <qxsdschemahelper_p.h>
Static Public Functions | |
| static bool | checkWildcardProcessContents (const XsdWildcard::Ptr &baseWildcard, const XsdWildcard::Ptr &derivedWildcard) |
| static bool | constructAndCompare (const DerivedString< TypeString >::Ptr &operand1, const AtomicComparator::Operator op, const DerivedString< TypeString >::Ptr &operand2, const SchemaType::Ptr &type, const ReportContext::Ptr &context, const SourceLocationReflection *const sourceLocationReflection) |
| static bool | foundSubstitutionGroupTransitive (const XsdElement::Ptr &head, const XsdElement::Ptr &member, QSet< XsdElement::Ptr > &visitedElements) |
| static void | foundSubstitutionGroupTypeInheritance (const SchemaType::Ptr &headType, const SchemaType::Ptr &memberType, QSet< SchemaType::DerivationMethod > &derivationSet, NamedSchemaComponent::BlockingConstraints &blockSet) |
| static bool | isComplexDerivationOk (const SchemaType::Ptr &derivedType, const SchemaType::Ptr &baseType, const SchemaType::DerivationConstraints &constraints) |
| static bool | isParticleEmptiable (const XsdParticle::Ptr &particle) |
| static bool | isSimpleDerivationOk (const SchemaType::Ptr &derivedType, const SchemaType::Ptr &baseType, const SchemaType::DerivationConstraints &constraints) |
| static bool | isValidAttributeGroupRestriction (const XsdAttributeGroup::Ptr &derivedAttributeGroup, const XsdAttributeGroup::Ptr &attributeGroup, const XsdSchemaContext::Ptr &context, QString &errorMsg) |
| static bool | isValidAttributeUsesExtension (const XsdAttributeUse::List &derivedAttributeUses, const XsdAttributeUse::List &attributeUses, const XsdWildcard::Ptr &derivedWildcard, const XsdWildcard::Ptr &wildcard, const XsdSchemaContext::Ptr &context, QString &errorMsg) |
| static bool | isValidAttributeUsesRestriction (const XsdAttributeUse::List &derivedAttributeUses, const XsdAttributeUse::List &attributeUses, const XsdWildcard::Ptr &derivedWildcard, const XsdWildcard::Ptr &wildcard, const XsdSchemaContext::Ptr &context, QString &errorMsg) |
| static bool | isValidlySubstitutable (const SchemaType::Ptr &type, const SchemaType::Ptr &otherType, const SchemaType::DerivationConstraints &constraints) |
| static bool | isWildcardSubset (const XsdWildcard::Ptr &wildcard, const XsdWildcard::Ptr &otherWildcard) |
| static bool | substitutionGroupOkTransitive (const XsdElement::Ptr &head, const XsdElement::Ptr &member, const NamePool::Ptr &namePool) |
| static bool | wildcardAllowsExpandedName (const QXmlName &name, const XsdWildcard::Ptr &wildcard, const NamePool::Ptr &namePool) |
| static bool | wildcardAllowsNamespaceName (const QString &nameSpace, const XsdWildcard::NamespaceConstraint::Ptr &constraint) |
| static XsdWildcard::Ptr | wildcardIntersection (const XsdWildcard::Ptr &wildcard, const XsdWildcard::Ptr &otherWildcard) |
| static XsdWildcard::Ptr | wildcardUnion (const XsdWildcard::Ptr &wildcard, const XsdWildcard::Ptr &otherWildcard) |
Contains helper methods that are used by XsdSchemaParser, XsdSchemaResolver and XsdSchemaChecker.
Definition at line 76 of file qxsdschemahelper_p.h.
|
static |
Returns whether the process content property of the derivedWildcard is valid according to the process content property of its baseWildcard.
Definition at line 554 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeUseConstraints(), derivedTermValid(), isValidAttributeUsesRestriction(), and isValidWildcardRestriction().
|
static |
This method takes the two string based operands operand1 and operand2 and converts them to instances of type type. If the conversion fails, false is returned, otherwise the instances are compared by the given operator op and the result of the comparison is returned.
Definition at line 529 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdTypeChecker::checkConstrainingFacetsDouble(), QPatternist::XsdTypeChecker::checkConstrainingFacetsDuration(), QPatternist::XsdTypeChecker::checkConstrainingFacetsList(), QPatternist::XsdTypeChecker::checkConstrainingFacetsSignedInteger(), QPatternist::XsdTypeChecker::checkConstrainingFacetsString(), QPatternist::XsdTypeChecker::checkConstrainingFacetsUnion(), QPatternist::XsdTypeChecker::checkConstrainingFacetsUnsignedInteger(), QPatternist::FieldNode::isEqualTo(), and QPatternist::XsdTypeChecker::valuesAreEqual().
|
static |
Checks whether @[ member is a member of the substitution group with the given head.
Definition at line 568 of file qxsdschemahelper.cpp.
Referenced by substitutionGroupOkTransitive().
|
static |
A helper method that iterates over the type hierarchy from memberType up to headType and collects all derivationSet and blockSet constraints that exists on the way there.
Definition at line 591 of file qxsdschemahelper.cpp.
Referenced by substitutionGroupOkTransitive().
|
static |
Returns whether the complex derivedType can be derived from the complex baseType under the given constraints.
Definition at line 486 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkElementConstraints(), derivedTermValid(), and isValidlySubstitutable().
|
static |
Checks whether the given particle is emptiable as defined by the algorithm in the schema spec.
Definition at line 110 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), derivedTermValid(), and QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes().
|
static |
Returns whether the simple derivedType can be derived from the simple baseType under the given constraints.
Definition at line 442 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkElementConstraints(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), derivedTermValid(), isComplexDerivationOk(), isValidAttributeUsesRestriction(), and isValidlySubstitutable().
|
static |
Checks if derivedAttributeGroup is a valid restriction for attributeGroup.
Definition at line 654 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaResolver::checkRedefinedAttributeGroups().
|
static |
Checks if derivedAttributeUses are a valid extension for attributeUses.
Definition at line 785 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkComplexTypeConstraints().
|
static |
Checks if derivedAttributeUses are a valid restriction for attributeUses.
Definition at line 665 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), and isValidAttributeGroupRestriction().
|
static |
Returns whether the given type is validly substitutable for an otherType under the given constraints.
Definition at line 416 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::validateElement().
|
static |
Checks whether the wildcard is a subset of otherWildcard.
Definition at line 174 of file qxsdschemahelper.cpp.
Referenced by derivedTermValid(), and isValidAttributeUsesRestriction().
|
static |
Checks if the member is transitive to head.
Definition at line 610 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdStateMachineBuilder::buildTerm().
|
static |
Checks whether the given name is allowed by the namespace constraint of the given wildcard.
Definition at line 147 of file qxsdschemahelper.cpp.
Referenced by derivedTermValid(), QPatternist::XsdSchemaChecker::elementSequenceAccepted(), QPatternist::XsdStateMachine< XsdSchemaToken::NodeName >::inputEqualsTransition(), isValidAttributeUsesRestriction(), termMatches(), and QPatternist::XsdValidatingInstanceReader::validateAttributeWildcard().
|
static |
Checks whether the given nameSpace is allowed by the given namespace constraint.
Definition at line 123 of file qxsdschemahelper.cpp.
Referenced by wildcardAllowsExpandedName().
|
static |
Returns the intersection of the given wildcard and otherWildcard.
Definition at line 315 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), and termMatches().
|
static |
Returns the union of the given wildcard and otherWildcard.
Definition at line 208 of file qxsdschemahelper.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveAttributeInheritance().