Qt 4.8
|
Base class for all named components that can appear in a W3C XML Schema. More...
#include <qnamedschemacomponent_p.h>
Public Types | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Public Functions | |
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 | |
QXmlName | m_name |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Base class for all named components that can appear in a W3C XML Schema.
Definition at line 71 of file qnamedschemacomponent_p.h.
Definition at line 74 of file qnamedschemacomponent_p.h.
Describes the blocking constraints that are given by the 'block' attributes.
Enumerator | |
---|---|
RestrictionConstraint | |
ExtensionConstraint | |
SubstitutionConstraint |
Definition at line 79 of file qnamedschemacomponent_p.h.
NamedSchemaComponent::NamedSchemaComponent | ( | ) |
Creates a new named schema component.
Definition at line 48 of file qnamedschemacomponent.cpp.
|
virtual |
Destroys the named schema component.
Definition at line 52 of file qnamedschemacomponent.cpp.
|
virtual |
Returns the display name of the schema component.
namePool | The name pool the name belongs to. |
Reimplemented in QPatternist::XsdComplexType, QPatternist::XsdUserSchemaType< TSuperClass >, QPatternist::XsdUserSchemaType< AnyType >, QPatternist::XsdUserSchemaType< AnySimpleType >, and QPatternist::XsdSimpleType.
Definition at line 66 of file qnamedschemacomponent.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkAttributeConstraints(), QPatternist::XsdSchemaChecker::checkComplexTypeConstraints(), QPatternist::XsdSchemaChecker::checkDuplicatedAttributeUses(), QPatternist::XsdSchemaChecker::checkElementConstraints(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), QPatternist::XsdSchemaResolver::checkRedefinedAttributeGroups(), QPatternist::XsdSchemaResolver::checkRedefinedGroups(), derivedTermValid(), QPatternist::XsdSchemaDebugger::dumpAttribute(), QPatternist::XsdSchemaDebugger::dumpElement(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), QPatternist::XsdSchemaResolver::resolveKeyReferences(), QPatternist::XsdSchemaResolver::resolveTermReference(), QPatternist::XsdStateMachine< XsdSchemaToken::NodeName >::transitionTypeToString(), QPatternist::XsdValidatingInstanceReader::validateAttribute(), QPatternist::XsdValidatingInstanceReader::validateElement(), QPatternist::XsdValidatingInstanceReader::validateElementComplexType(), QPatternist::XsdValidatingInstanceReader::validateElementSimpleType(), QPatternist::XsdValidatingInstanceReader::validateKeyIdentityConstraint(), QPatternist::XsdValidatingInstanceReader::validateKeyRefIdentityConstraint(), and QPatternist::XsdValidatingInstanceReader::validateUniqueIdentityConstraint().
|
virtual |
Returns the name of the schema component.
namePool | The name pool the name belongs to. |
Reimplemented in QPatternist::XsdUserSchemaType< TSuperClass >, QPatternist::XsdUserSchemaType< AnyType >, and QPatternist::XsdUserSchemaType< AnySimpleType >.
Definition at line 61 of file qnamedschemacomponent.cpp.
Referenced by QPatternist::XsdSchema::addAttribute(), QPatternist::XsdSchemaParser::addAttribute(), QPatternist::XsdSchema::addAttributeGroup(), QPatternist::XsdSchemaParser::addAttributeGroup(), QPatternist::XsdSchema::addElement(), QPatternist::XsdSchemaParser::addElement(), QPatternist::XsdSchema::addElementGroup(), QPatternist::XsdSchemaParser::addElementGroup(), QPatternist::XsdSchema::addIdentityConstraint(), QPatternist::XsdSchemaParser::addIdentityConstraint(), QPatternist::XsdSchemaChecker::checkElementDuplicates(), derivedTermValid(), QPatternist::XsdStateMachine< XsdSchemaToken::NodeName >::inputEqualsTransition(), isSubstGroupHeadOf(), QPatternist::XsdSchemaMerger::merge(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaChecker::particleEqualsRecursively(), QPatternist::XsdSchemaResolver::resolveAttributeTermReferences(), QPatternist::XsdSchemaResolver::resolveTermReference(), setName(), QPatternist::XsdSchemaHelper::substitutionGroupOkTransitive(), termMatches(), QPatternist::XsdValidatingInstanceReader::validateAttribute(), QPatternist::XsdValidatingInstanceReader::validateKeyIdentityConstraint(), QPatternist::XsdValidatingInstanceReader::validateKeyRefIdentityConstraint(), and QPatternist::XsdValidatingInstanceReader::validateUniqueIdentityConstraint().
void NamedSchemaComponent::setName | ( | const QXmlName & | name | ) |
Sets the name
of the schema component.
Definition at line 56 of file qnamedschemacomponent.cpp.
Referenced by QPatternist::XsdSchemaParser::parseGlobalAttribute(), QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdSchemaParser::parseKey(), QPatternist::XsdSchemaParser::parseKeyRef(), QPatternist::XsdSchemaParser::parseLocalAttribute(), QPatternist::XsdSchemaParser::parseLocalElement(), QPatternist::XsdSchemaParser::parseNamedAttributeGroup(), QPatternist::XsdSchemaParser::parseNamedGroup(), QPatternist::XsdSchemaParser::parseRedefine(), QPatternist::XsdSchemaParser::parseUnique(), and QPatternist::XsdValidatingInstanceReader::validate().
|
private |
Definition at line 117 of file qnamedschemacomponent_p.h.
Referenced by displayName(), name(), and setName().