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

Describes the scope of an attribute. More...

#include <qxsdattribute_p.h>

Inheritance diagram for QPatternist::XsdAttribute::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 attribute.

See also
Scope Definition

Definition at line 94 of file qxsdattribute_p.h.

Typedefs

◆ Ptr

Definition at line 97 of file qxsdattribute_p.h.

Enumerations

◆ Variety

Describes the scope of an attribute.

Enumerator
Global 

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

Local 

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

Definition at line 102 of file qxsdattribute_p.h.

103  {
104  Global,
105  Local
106  };
The attribute is defined locally as child of a complex type or attribute group definition.
The attribute is defined globally as child of the schema object.

Functions

◆ parent()

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

Returns the parent complex type or attribute group definition of the attribute scope.

Definition at line 65 of file qxsdattribute.cpp.

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

◆ setParent()

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

Sets the parent complex type or attribute group definition of the attribute scope.

See also
Parent Definition

Definition at line 60 of file qxsdattribute.cpp.

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

◆ setVariety()

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

Sets the variety of the attribute scope.

See also
Variety Definition

Definition at line 50 of file qxsdattribute.cpp.

◆ variety()

XsdAttribute::Scope::Variety XsdAttribute::Scope::variety ( ) const

Returns the variety of the attribute scope.

Definition at line 55 of file qxsdattribute.cpp.

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

56 {
57  return m_variety;
58 }

Properties

◆ m_parent

NamedSchemaComponent* QPatternist::XsdAttribute::Scope::m_parent
private

Definition at line 134 of file qxsdattribute_p.h.

Referenced by parent(), and setParent().

◆ m_variety

Variety QPatternist::XsdAttribute::Scope::m_variety
private

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