![]() |
Qt 4.8
|
Represents the xs:anyType item type.
More...
#include <qanytype_p.h>
Public Types | |
| typedef QExplicitlySharedDataPointer< AnyType > | Ptr |
Public Types inherited from QPatternist::SchemaType | |
| enum | DerivationConstraint { RestrictionConstraint = 1, ExtensionConstraint = 2, ListConstraint = 4, UnionConstraint = 8 } |
| enum | DerivationMethod { DerivationRestriction = 1, DerivationExtension = 2, DerivationUnion = 4, DerivationList = 8, NoDerivation = 16 } |
| typedef QHash< QXmlName, SchemaType::Ptr > | Hash |
| typedef QList< SchemaType::Ptr > | List |
| typedef QExplicitlySharedDataPointer< SchemaType > | Ptr |
| enum | TypeCategory { None = 0, SimpleTypeAtomic, SimpleTypeList, SimpleTypeUnion, ComplexType } |
Public Functions | |
| virtual TypeCategory | category () const |
| virtual DerivationConstraints | derivationConstraints () const |
| virtual DerivationMethod | derivationMethod () const |
| virtual QString | displayName (const NamePool::Ptr &np) const |
| virtual bool | isAbstract () const |
| virtual bool | isComplexType () const |
| virtual QXmlName | name (const NamePool::Ptr &np) const |
| Returns the name of the type. More... | |
| virtual SchemaType::Ptr | wxsSuperType () const |
| virtual bool | wxsTypeMatches (const SchemaType::Ptr &other) const |
| virtual | ~AnyType () |
Public Functions inherited from QPatternist::SchemaType | |
| virtual bool | isDefinedBySchema () const |
| virtual bool | isSimpleType () const |
| SchemaType () | |
| virtual | ~SchemaType () |
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... | |
Protected Functions | |
| AnyType () | |
| This constructor is protected, because this class must be sub-classed. More... | |
Friends | |
| class | BuiltinTypes |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Represents the xs:anyType item type.
Definition at line 71 of file qanytype_p.h.
Definition at line 75 of file qanytype_p.h.
|
virtual |
Definition at line 50 of file qanytype.cpp.
|
inlineprotected |
This constructor is protected, because this class must be sub-classed.
Definition at line 132 of file qanytype_p.h.
|
virtual |
xs:anyType is the "ur-type" and special. Therefore, this function returns SchemaType::None.
Implements QPatternist::SchemaType.
Reimplemented in QPatternist::XsdComplexType, QPatternist::XsdSimpleType, QPatternist::AtomicType, QPatternist::AnySimpleType, and QPatternist::Untyped.
Definition at line 83 of file qanytype.cpp.
|
virtual |
Implements QPatternist::SchemaType.
Reimplemented in QPatternist::XsdUserSchemaType< AnyType >, and QPatternist::XsdUserSchemaType< AnySimpleType >.
Definition at line 98 of file qanytype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints().
|
virtual |
Implements QPatternist::SchemaType.
Reimplemented in QPatternist::XsdComplexType, QPatternist::XsdSimpleType, QPatternist::AtomicType, QPatternist::AnySimpleType, and QPatternist::Untyped.
Definition at line 93 of file qanytype.cpp.
|
virtual |
Implements QPatternist::SchemaType.
Reimplemented in QPatternist::NOTATIONType, QPatternist::DerivedStringType< derivedType >, QPatternist::StringType, QPatternist::QNameType, QPatternist::AnyURIType, QPatternist::HexBinaryType, QPatternist::Base64BinaryType, QPatternist::BooleanType, QPatternist::GMonthType, QPatternist::GDayType, QPatternist::GMonthDayType, QPatternist::GYearType, QPatternist::GYearMonthType, QPatternist::DerivedIntegerType< derivedType >, QPatternist::IntegerType, QPatternist::DecimalType, QPatternist::FloatType, QPatternist::DoubleType, QPatternist::DayTimeDurationType, QPatternist::XsdComplexType, QPatternist::YearMonthDurationType, QPatternist::DurationType, QPatternist::SchemaTimeType, QPatternist::DateType, QPatternist::DateTimeType, QPatternist::UntypedAtomicType, QPatternist::AtomicType, QPatternist::XsdUserSchemaType< AnyType >, QPatternist::XsdUserSchemaType< AnySimpleType >, QPatternist::XsdSimpleType, QPatternist::AnySimpleType, QPatternist::AnyAtomicType, and QPatternist::NumericType.
Definition at line 72 of file qanytype.cpp.
|
virtual |
false Implements QPatternist::SchemaType.
Reimplemented in QPatternist::NOTATIONType, QPatternist::XsdComplexType, QPatternist::AnyAtomicType, QPatternist::NumericType, and QPatternist::BuiltinAtomicType.
Definition at line 62 of file qanytype.cpp.
|
virtual |
Always returns true.
Reimplemented from QPatternist::SchemaType.
Reimplemented in QPatternist::AnySimpleType.
Definition at line 88 of file qanytype.cpp.
|
virtual |
Returns the name of the type.
The reason to why we take the name pool argument, is that the basic types, xs:anySimpleType and so on, are stored globally in BuiltinTypes and ComonSequenceTypes, and therefore cannot be tied to a certain name pool. Type instances that knows they always will be used with a certain name pool, can therefore ignore np and return a QXmlName instance stored as a member.
If the type code was refactored to not be store globally and therefore by design would be tied to a name pool, this argument could be removed.
Implements QPatternist::SchemaType.
Reimplemented in QPatternist::NOTATIONType, QPatternist::DerivedStringType< derivedType >, QPatternist::StringType, QPatternist::QNameType, QPatternist::AnyURIType, QPatternist::HexBinaryType, QPatternist::Base64BinaryType, QPatternist::BooleanType, QPatternist::GMonthType, QPatternist::GDayType, QPatternist::GMonthDayType, QPatternist::GYearType, QPatternist::GYearMonthType, QPatternist::DerivedIntegerType< derivedType >, QPatternist::IntegerType, QPatternist::DecimalType, QPatternist::FloatType, QPatternist::DoubleType, QPatternist::DayTimeDurationType, QPatternist::YearMonthDurationType, QPatternist::DurationType, QPatternist::SchemaTimeType, QPatternist::DateType, QPatternist::DateTimeType, QPatternist::UntypedAtomicType, QPatternist::XsdUserSchemaType< AnyType >, QPatternist::XsdUserSchemaType< AnySimpleType >, QPatternist::Untyped, QPatternist::AnySimpleType, and QPatternist::AnyAtomicType.
Definition at line 67 of file qanytype.cpp.
|
virtual |
null, since xs:anyType has no base type, it is the ur-type.null Implements QPatternist::SchemaType.
Reimplemented in QPatternist::XsdComplexType, QPatternist::XsdSimpleType, QPatternist::NumericType, QPatternist::AnyAtomicType, QPatternist::AnySimpleType, QPatternist::BuiltinAtomicType, and QPatternist::Untyped.
Definition at line 78 of file qanytype.cpp.
|
virtual |
true only if other is xsAnyType. Implements QPatternist::SchemaType.
Definition at line 54 of file qanytype.cpp.
Referenced by QPatternist::AtomicType::itemMatches().
|
friend |
Definition at line 76 of file qanytype_p.h.