Qt 4.8
|
Represents a XSD complexType object. More...
#include <qxsdcomplextype_p.h>
Classes | |
class | ContentType |
Describes the content type of a complex type. More... | |
class | OpenContent |
Describes the open content object of a complex type. More... | |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::AnyType | |
AnyType () | |
This constructor is protected, because this class must be sub-classed. More... | |
Represents a XSD complexType object.
This class represents the complexType object of a XML schema as described here.
It contains information from either a top-level complex type declaration (as child of a schema object) or a local complex type declaration (as descendant of an element object).
Definition at line 84 of file qxsdcomplextype_p.h.
Definition at line 87 of file qxsdcomplextype_p.h.
XsdComplexType::XsdComplexType | ( | ) |
Creates a complex type object with empty content.
Definition at line 109 of file qxsdcomplextype.cpp.
|
inline |
void XsdComplexType::addAssertion | ( | const XsdAssertion::Ptr & | assertion | ) |
Adds an assertion
to the complex type.
Definition at line 216 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseSimpleContentExtension(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), and ~XsdComplexType().
void XsdComplexType::addAttributeUse | ( | const XsdAttributeUse::Ptr & | use | ) |
Adds a new attribute use
to the complex type.
Definition at line 166 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseSimpleContentExtension(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), and ~XsdComplexType().
XsdAssertion::List XsdComplexType::assertions | ( | ) | const |
Returns the assertions of the complex type.
Definition at line 221 of file qxsdcomplextype.cpp.
Referenced by setAssertions(), and ~XsdComplexType().
XsdAttributeUse::List XsdComplexType::attributeUses | ( | ) | const |
Returns the list of all attribute uses of the complex type.
Definition at line 171 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeUseConstraints(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkDuplicatedAttributeUses(), QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), setAttributeUses(), QPatternist::XsdValidatingInstanceReader::validateElementComplexType(), and ~XsdComplexType().
XsdWildcard::Ptr XsdComplexType::attributeWildcard | ( | ) | const |
Returns the attribute wildcard of the complex type.
Definition at line 181 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeUseConstraints(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), QPatternist::XsdValidatingInstanceReader::validateElementComplexType(), and ~XsdComplexType().
|
virtual |
Always returns SchemaType::ComplexType
Reimplemented from QPatternist::AnyType.
Definition at line 186 of file qxsdcomplextype.cpp.
Referenced by ~XsdComplexType().
XsdComplexType::ContentType::Ptr XsdComplexType::contentType | ( | ) | const |
Returns the content type of the complex type.
Definition at line 156 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkElementConstraints(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdSchemaParser::parseComplexContent(), QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseSimpleContent(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), QPatternist::XsdSchemaResolver::resolveComplexBaseTypes(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaParser::resolveComplexContentType(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveTermReferences(), QPatternist::XsdValidatingInstanceReader::selectNodeSets(), QPatternist::XsdValidatingInstanceReader::validateElementComplexType(), and ~XsdComplexType().
NamedSchemaComponent::Ptr XsdComplexType::context | ( | ) | const |
Returns the context component of the complex type.
Definition at line 146 of file qxsdcomplextype.cpp.
Referenced by ~XsdComplexType().
|
virtual |
Returns the derivation method of the complex type.
Reimplemented from QPatternist::AnyType.
Definition at line 196 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkBasicComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and ~XsdComplexType().
|
virtual |
Returns the display name of the complex type.
The display name can be used to show the type name to the user.
namePool | The name pool where the type name is stored in. |
Reimplemented from QPatternist::XsdUserSchemaType< AnyType >.
Definition at line 126 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaDebugger::dumpType(), and ~XsdComplexType().
|
virtual |
Returns whether the complex type is abstract.
Reimplemented from QPatternist::AnyType.
Definition at line 121 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdValidatingInstanceReader::validateElementType(), and ~XsdComplexType().
|
virtual |
Always returns true
.
Reimplemented from QPatternist::SchemaType.
Definition at line 226 of file qxsdcomplextype.cpp.
Referenced by ~XsdComplexType().
XsdComplexType::BlockingConstraints XsdComplexType::prohibitedSubstitutions | ( | ) | const |
Returns the prohibited substitutions of the complex type.
Definition at line 206 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaHelper::foundSubstitutionGroupTypeInheritance(), QPatternist::XsdSchemaHelper::isValidlySubstitutable(), QPatternist::XsdSchemaHelper::substitutionGroupOkTransitive(), and ~XsdComplexType().
void XsdComplexType::setAssertions | ( | const XsdAssertion::List & | assertions | ) |
Sets the assertions
of the complex type.
Definition at line 211 of file qxsdcomplextype.cpp.
Referenced by ~XsdComplexType().
void XsdComplexType::setAttributeUses | ( | const XsdAttributeUse::List & | uses | ) |
Sets the list of all attribute uses
of the complex type.
Definition at line 161 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), and ~XsdComplexType().
void XsdComplexType::setAttributeWildcard | ( | const XsdWildcard::Ptr & | wildcard | ) |
Sets the attribute wildcard
of the complex type.
Definition at line 176 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseSimpleContentExtension(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), and ~XsdComplexType().
void XsdComplexType::setContentType | ( | const ContentType::Ptr & | type | ) |
Sets the content type
of the complex type.
Definition at line 151 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), and ~XsdComplexType().
void XsdComplexType::setContext | ( | const NamedSchemaComponent::Ptr & | component | ) |
Sets the context component
of the complex type.
The component is either an element declaration or a complex type definition.
Definition at line 141 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseLocalElement(), and ~XsdComplexType().
void XsdComplexType::setDerivationMethod | ( | DerivationMethod | method | ) |
Sets the derivation method
of the complex type.
The derivation method depends on whether the complex type object has an extension or restriction object as child.
Definition at line 191 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseComplexContentExtension(), QPatternist::XsdSchemaParser::parseComplexContentRestriction(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseSimpleContentExtension(), QPatternist::XsdSchemaParser::parseSimpleContentRestriction(), and ~XsdComplexType().
void XsdComplexType::setIsAbstract | ( | bool | abstract | ) |
Sets whether the complex type is abstract
.
Definition at line 116 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdValidatingInstanceReader::anyType(), QPatternist::XsdSchemaParser::parseGlobalComplexType(), and ~XsdComplexType().
void XsdComplexType::setProhibitedSubstitutions | ( | const BlockingConstraints & | substitutions | ) |
Sets the prohibited substitutions
of the complex type.
Only ExtensionConstraint and RestrictionConstraint are allowed.
Definition at line 201 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalComplexType(), and ~XsdComplexType().
void XsdComplexType::setWxsSuperType | ( | const SchemaType::Ptr & | type | ) |
Sets the base type of the complex type.
Definition at line 131 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalComplexType(), QPatternist::XsdSchemaParser::parseLocalComplexType(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaResolver::resolveComplexBaseTypes(), and ~XsdComplexType().
|
virtual |
Returns the base type of the complex type.
Reimplemented from QPatternist::AnyType.
Definition at line 136 of file qxsdcomplextype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkBasicComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaDebugger::dumpType(), QPatternist::XsdSchemaResolver::resolveAttributeInheritance(), QPatternist::XsdSchemaResolver::resolveComplexContentComplexTypes(), QPatternist::XsdSchemaResolver::resolveSimpleContentComplexTypes(), and ~XsdComplexType().
|
private |
Definition at line 396 of file qxsdcomplextype_p.h.
Referenced by addAssertion(), assertions(), and setAssertions().
|
private |
Definition at line 392 of file qxsdcomplextype_p.h.
Referenced by addAttributeUse(), attributeUses(), and setAttributeUses().
|
private |
Definition at line 393 of file qxsdcomplextype_p.h.
Referenced by attributeWildcard(), and setAttributeWildcard().
|
private |
Definition at line 394 of file qxsdcomplextype_p.h.
Referenced by contentType(), setContentType(), and XsdComplexType().
|
private |
Definition at line 389 of file qxsdcomplextype_p.h.
Referenced by context(), and setContext().
|
private |
Definition at line 390 of file qxsdcomplextype_p.h.
Referenced by derivationMethod(), and setDerivationMethod().
|
private |
Definition at line 391 of file qxsdcomplextype_p.h.
Referenced by isAbstract(), and setIsAbstract().
|
private |
Definition at line 395 of file qxsdcomplextype_p.h.
Referenced by prohibitedSubstitutions(), and setProhibitedSubstitutions().
|
private |
Definition at line 388 of file qxsdcomplextype_p.h.
Referenced by setWxsSuperType(), and wxsSuperType().