Qt 4.8
|
A helper class for attribute reference resolving. More...
#include <qxsdattributereference_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< XsdAttributeReference > | Ptr |
enum | Type { AttributeUse, AttributeGroup } |
Public Types inherited from QPatternist::XsdAttributeUse | |
typedef QList< XsdAttributeUse::Ptr > | List |
typedef QExplicitlySharedDataPointer< XsdAttributeUse > | Ptr |
enum | UseType { OptionalUse, RequiredUse, ProhibitedUse } |
Public Types inherited from QPatternist::XsdAttributeTerm | |
typedef QExplicitlySharedDataPointer< XsdAttributeTerm > | Ptr |
Public Types inherited from QPatternist::NamedSchemaComponent | |
enum | BlockingConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, SubstitutionConstraint = 4 } |
typedef QExplicitlySharedDataPointer< NamedSchemaComponent > | Ptr |
Properties | |
QXmlName | m_referenceName |
QSourceLocation | m_sourceLocation |
Type | m_type |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
A helper class for attribute reference resolving.
For easy resolving of attribute references, we have this class that can be used as a place holder for the real attribute use object it is referring to. So whenever the parser detects an attribute reference, it creates a XsdAttributeReference and returns it instead of the XsdAttributeUse. During a later phase, the resolver will look for all XsdAttributeReferences in the schema and will replace them with their referring XsdAttributeUse objects.
Definition at line 80 of file qxsdattributereference_p.h.
Definition at line 83 of file qxsdattributereference_p.h.
Describes the type of the attribute reference.
Enumerator | |
---|---|
AttributeUse | The reference points to an attribute use. |
AttributeGroup | The reference points to an attribute group. |
Definition at line 88 of file qxsdattributereference_p.h.
|
virtual |
Always returns false, used to avoid dynamic casts.
Reimplemented from QPatternist::XsdAttributeUse.
Definition at line 48 of file qxsdattributereference.cpp.
|
virtual |
Always returns true, used to avoid dynamic casts.
Reimplemented from QPatternist::XsdAttributeTerm.
Definition at line 53 of file qxsdattributereference.cpp.
QXmlName XsdAttributeReference::referenceName | ( | ) | const |
Returns the name of the attribute or attribute group the attribute reference refers to.
Definition at line 73 of file qxsdattributereference.cpp.
Referenced by setReferenceName().
void XsdAttributeReference::setReferenceName | ( | const QXmlName & | name | ) |
Sets the name
of the attribute or attribute group the attribute reference refers to.
Definition at line 68 of file qxsdattributereference.cpp.
void XsdAttributeReference::setSourceLocation | ( | const QSourceLocation & | location | ) |
Sets the source location
where the reference is located.
Definition at line 78 of file qxsdattributereference.cpp.
void XsdAttributeReference::setType | ( | Type | type | ) |
QSourceLocation XsdAttributeReference::sourceLocation | ( | ) | const |
Returns the source location where the reference is located.
Definition at line 83 of file qxsdattributereference.cpp.
XsdAttributeReference::Type XsdAttributeReference::type | ( | ) | const |
Returns the type of the attribute reference.
Definition at line 63 of file qxsdattributereference.cpp.
Referenced by setType().
|
private |
Definition at line 138 of file qxsdattributereference_p.h.
Referenced by referenceName(), and setReferenceName().
|
private |
Definition at line 139 of file qxsdattributereference_p.h.
Referenced by setSourceLocation(), and sourceLocation().
|
private |
Definition at line 137 of file qxsdattributereference_p.h.