Qt 4.8
|
Describes the scope of an attribute. More...
#include <qxsdattribute_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< Scope > | Ptr |
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 | |
NamedSchemaComponent * | m_parent |
Variety | m_variety |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Describes the scope of an attribute.
Definition at line 94 of file qxsdattribute_p.h.
Definition at line 97 of file qxsdattribute_p.h.
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.
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.
void XsdAttribute::Scope::setParent | ( | const NamedSchemaComponent::Ptr & | parent | ) |
Sets the parent
complex type or attribute group definition of the attribute scope.
Definition at line 60 of file qxsdattribute.cpp.
void XsdAttribute::Scope::setVariety | ( | Variety | variety | ) |
Sets the variety
of the attribute scope.
Definition at line 50 of file qxsdattribute.cpp.
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().
|
private |
Definition at line 134 of file qxsdattribute_p.h.
Referenced by parent(), and setParent().
|
private |
Definition at line 133 of file qxsdattribute_p.h.
Referenced by setVariety(), QPatternist::XsdAttribute::ValueConstraint::setVariety(), variety(), and QPatternist::XsdAttribute::ValueConstraint::variety().