Qt 4.8
Public Types | Public Functions | Properties | List of all members
QPatternist::NamedSchemaComponent Class Reference

Base class for all named components that can appear in a W3C XML Schema. More...

#include <qnamedschemacomponent_p.h>

Inheritance diagram for QPatternist::NamedSchemaComponent:
QPatternist::SchemaComponent QSharedData QPatternist::XsdAlternative QPatternist::XsdAnnotation QPatternist::XsdApplicationInformation QPatternist::XsdAssertion QPatternist::XsdAttribute QPatternist::XsdAttributeGroup QPatternist::XsdAttributeTerm QPatternist::XsdDocumentation QPatternist::XsdFacet QPatternist::XsdIdentityConstraint QPatternist::XsdNotation QPatternist::XsdParticle QPatternist::XsdTerm QPatternist::XsdUserSchemaType< TSuperClass > QPatternist::XsdXPathExpression QPatternist::XsdUserSchemaType< AnySimpleType > QPatternist::XsdUserSchemaType< AnyType >

Public Types

enum  BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 }
 
typedef QExplicitlySharedDataPointer< NamedSchemaComponentPtr
 

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
 

Detailed Description

Base class for all named components that can appear in a W3C XML Schema.

Author
Tobias Koenig tobia.nosp@m.s.ko.nosp@m.enig@.nosp@m.noki.nosp@m.a.com

Definition at line 71 of file qnamedschemacomponent_p.h.

Typedefs

◆ Ptr

Definition at line 74 of file qnamedschemacomponent_p.h.

Enumerations

◆ BlockingConstraint

Describes the blocking constraints that are given by the 'block' attributes.

Enumerator
RestrictionConstraint 
ExtensionConstraint 
SubstitutionConstraint 

Definition at line 79 of file qnamedschemacomponent_p.h.

Constructors and Destructors

◆ NamedSchemaComponent()

NamedSchemaComponent::NamedSchemaComponent ( )

Creates a new named schema component.

Definition at line 48 of file qnamedschemacomponent.cpp.

49 {
50 }

◆ ~NamedSchemaComponent()

NamedSchemaComponent::~NamedSchemaComponent ( )
virtual

Destroys the named schema component.

Definition at line 52 of file qnamedschemacomponent.cpp.

53 {
54 }

Functions

◆ displayName()

QString NamedSchemaComponent::displayName ( const NamePool::Ptr namePool) const
virtual

Returns the display name of the schema component.

Parameters
namePoolThe 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().

67 {
68  return np->displayName(m_name);
69 }

◆ name()

QXmlName NamedSchemaComponent::name ( const NamePool::Ptr namePool) const
virtual

Returns the name of the schema component.

Parameters
namePoolThe 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().

62 {
63  return m_name;
64 }

◆ setName()

void NamedSchemaComponent::setName ( const QXmlName name)

Properties

◆ m_name

QXmlName QPatternist::NamedSchemaComponent::m_name
private

Definition at line 117 of file qnamedschemacomponent_p.h.

Referenced by displayName(), name(), and setName().


The documentation for this class was generated from the following files: