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

#include <qxsdelement_p.h>

Inheritance diagram for QPatternist::XsdElement::Scope:
QSharedData

Public Types

typedef QExplicitlySharedDataPointer< ScopePtr
 
enum  Variety { Global, Local }
 

Public Functions

NamedSchemaComponent::Ptr parent () const
 
void setParent (const NamedSchemaComponent::Ptr &parent)
 
void setVariety (Variety variety)
 
Variety variety () const
 
- 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

NamedSchemaComponentm_parent
 
Variety m_variety
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Describes the scope of an element.

See also
Scope Definition

Definition at line 105 of file qxsdelement_p.h.

Typedefs

◆ Ptr

Definition at line 108 of file qxsdelement_p.h.

Enumerations

◆ Variety

Describes the scope of an attribute.

Enumerator
Global 

The element is defined globally as child of the schema object.

Local 

The element is defined locally as child of a complex type or model group definition.

Definition at line 113 of file qxsdelement_p.h.

114  {
115  Global,
116  Local
117  };
The element is defined locally as child of a complex type or model group definition.
The element is defined globally as child of the schema object.

Functions

◆ parent()

NamedSchemaComponent::Ptr XsdElement::Scope::parent ( ) const

Returns the parent complex type or model group definition of the element scope.

Definition at line 63 of file qxsdelement.cpp.

64 {
66 }
QExplicitlySharedDataPointer< NamedSchemaComponent > Ptr
NamedSchemaComponent * m_parent

◆ setParent()

void XsdElement::Scope::setParent ( const NamedSchemaComponent::Ptr parent)

Sets the parent complex type or model group definition of the element scope.

Definition at line 58 of file qxsdelement.cpp.

59 {
60  m_parent = parent.data();
61 }
T * data() const
Returns a pointer to the shared data object.
Definition: qshareddata.h:145
NamedSchemaComponent * m_parent

◆ setVariety()

void XsdElement::Scope::setVariety ( Variety  variety)

Sets the variety of the element scope.

Definition at line 48 of file qxsdelement.cpp.

◆ variety()

XsdElement::Scope::Variety XsdElement::Scope::variety ( ) const

Returns the variety of the element scope.

Definition at line 53 of file qxsdelement.cpp.

Referenced by setVariety(), and QPatternist::XsdElement::ValueConstraint::setVariety().

54 {
55  return m_variety;
56 }

Properties

◆ m_parent

NamedSchemaComponent* QPatternist::XsdElement::Scope::m_parent
private

Definition at line 141 of file qxsdelement_p.h.

Referenced by parent(), and setParent().

◆ m_variety

Variety QPatternist::XsdElement::Scope::m_variety
private

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