Qt 4.8
|
Represents the xs:anySimpleType
item type.
More...
#include <qanysimpletype_p.h>
Public Types | |
typedef QList< AnySimpleType::Ptr > | List |
typedef QExplicitlySharedDataPointer< AnySimpleType > | Ptr |
Public Types inherited from QPatternist::AnyType | |
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 SchemaType::DerivationMethod | derivationMethod () const |
virtual QString | displayName (const NamePool::Ptr &np) const |
virtual bool | isComplexType () const |
virtual bool | isSimpleType () const |
virtual QXmlName | name (const NamePool::Ptr &np) const |
Returns the name of the type. More... | |
virtual SchemaType::Ptr | wxsSuperType () const |
virtual | ~AnySimpleType () |
Public Functions inherited from QPatternist::AnyType | |
virtual DerivationConstraints | derivationConstraints () const |
virtual bool | isAbstract () const |
virtual bool | wxsTypeMatches (const SchemaType::Ptr &other) const |
virtual | ~AnyType () |
Public Functions inherited from QPatternist::SchemaType | |
virtual bool | isDefinedBySchema () 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 | |
AnySimpleType () | |
Protected Functions inherited from QPatternist::AnyType | |
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:anySimpleType
item type.
Definition at line 73 of file qanysimpletype_p.h.
Definition at line 77 of file qanysimpletype_p.h.
Definition at line 76 of file qanysimpletype_p.h.
|
virtual |
Definition at line 54 of file qanysimpletype.cpp.
|
protected |
Definition at line 50 of file qanysimpletype.cpp.
|
virtual |
xs:anySimpleType is the special "simple ur-type". Therefore this function returns SchemaType::None
Reimplemented from QPatternist::AnyType.
Reimplemented in QPatternist::XsdSimpleType, and QPatternist::AtomicType.
Definition at line 73 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkElementConstraints(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints(), comparableType(), and QPatternist::XsdTypeChecker::valuesAreEqual().
|
virtual |
The simple ur-type is a "special restriction of the ur-type definition", according to XML Schema Part 2: Datatypes Second Edition about xs:anySimpleType
Reimplemented from QPatternist::AnyType.
Reimplemented in QPatternist::XsdSimpleType, and QPatternist::AtomicType.
Definition at line 78 of file qanysimpletype.cpp.
|
virtual |
xs:anySimpleType
Reimplemented from QPatternist::AnyType.
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::AtomicType, QPatternist::XsdUserSchemaType< AnySimpleType >, QPatternist::XsdSimpleType, QPatternist::AnyAtomicType, and QPatternist::NumericType.
Definition at line 63 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaDebugger::dumpAttribute(), and QPatternist::XsdSchemaDebugger::dumpType().
|
virtual |
Always returns false
.
Reimplemented from QPatternist::AnyType.
Definition at line 88 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions().
|
virtual |
Always returns true
.
Reimplemented from QPatternist::SchemaType.
Definition at line 83 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), and QPatternist::XsdSchemaChecker::checkSimpleTypeConstraints().
|
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.
Reimplemented from QPatternist::AnyType.
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< AnySimpleType >, and QPatternist::AnyAtomicType.
Definition at line 58 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaChecker::checkConstrainingFacets(), QPatternist::XsdSchemaChecker::checkSimpleDerivationRestrictions(), displayName(), QPatternist::XsdSchemaResolver::findPrimitiveType(), QPatternist::XsdTypeChecker::isValidString(), QPatternist::XsdSchemaChecker::isValidValue(), and QPatternist::XsdTypeChecker::valuesAreEqual().
|
virtual |
Reimplemented from QPatternist::AnyType.
Reimplemented in QPatternist::XsdSimpleType, QPatternist::NumericType, QPatternist::AnyAtomicType, and QPatternist::BuiltinAtomicType.
Definition at line 68 of file qanysimpletype.cpp.
Referenced by QPatternist::XsdSchemaResolver::findPrimitiveType(), and matchesType().
|
friend |
Definition at line 78 of file qanysimpletype_p.h.